diff options
author | Sam Scott <sam@osohq.com> | 2023-01-07 13:32:36 -0600 |
---|---|---|
committer | Sam Scott <sam@osohq.com> | 2023-01-07 13:32:36 -0600 |
commit | fbe9c6bcf2bf19dc46ecf60e255d52f4224359f2 (patch) | |
tree | 6677801457ab3242c3c4fff98885c69df735287c /src/de/parse.rs | |
parent | d9eba81462b39514aa774b913dcba16bec2f8b37 (diff) |
Address some clippy nits.
Diffstat (limited to 'src/de/parse.rs')
-rw-r--r-- | src/de/parse.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de/parse.rs b/src/de/parse.rs index f4d280a..a76f2c5 100644 --- a/src/de/parse.rs +++ b/src/de/parse.rs @@ -340,7 +340,7 @@ impl<'a> Parser<'a> { c => { if self.strict { return Err(super::Error::parse_err( - &format!( + format!( "unexpected character: {}", String::from_utf8_lossy(&[c]) ), @@ -463,7 +463,7 @@ impl<'a> Parser<'a> { } else { // We expected to parse into a map here. break Err(super::Error::parse_err( - &format!( + format!( "tried to insert a \ new key into {:?}", node @@ -542,7 +542,7 @@ impl<'a> Parser<'a> { } else { // We expected to parse into a seq here. break Err(super::Error::parse_err( - &format!( + format!( "tried to insert a \ new key into {:?}", node |