summaryrefslogtreecommitdiff
path: root/src/de/parse.rs
diff options
context:
space:
mode:
authorSam Scott <sam@osohq.com>2023-01-07 13:32:36 -0600
committerSam Scott <sam@osohq.com>2023-01-07 13:32:36 -0600
commitfbe9c6bcf2bf19dc46ecf60e255d52f4224359f2 (patch)
tree6677801457ab3242c3c4fff98885c69df735287c /src/de/parse.rs
parentd9eba81462b39514aa774b913dcba16bec2f8b37 (diff)
Address some clippy nits.
Diffstat (limited to 'src/de/parse.rs')
-rw-r--r--src/de/parse.rs6
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