summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-11-22 12:58:47 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-11-29 11:53:55 +0100
commit049055e3ff5ffe86700b668e924fbff96e82be94 (patch)
tree30dfd63e4d1c3016210b698813e99b70787890e8 /ipc
parent97ce753fefae770ee0b5b02a611d75e29a7cd01d (diff)
Remove unnecessary borrows.
- Fixed with the help of clippy::needless_borrow.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/src/sexp/parse/lexer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/src/sexp/parse/lexer.rs b/ipc/src/sexp/parse/lexer.rs
index b4eae979..29f3f545 100644
--- a/ipc/src/sexp/parse/lexer.rs
+++ b/ipc/src/sexp/parse/lexer.rs
@@ -116,14 +116,14 @@ impl<'input> Iterator for Lexer<'input> {
}
}
- let len = String::from_utf8_lossy(&input);
+ let len = String::from_utf8_lossy(input);
Some(Err(LexicalError::TruncatedInput(
format!("Expected colon and data after {:?}", len))))
},
_ => Some(Err(LexicalError::UnexpectedCharacter(
format!("Unexpected character {}", *c as char)))),
}
- })(&self.input)?;
+ })(self.input)?;
let (l, token) = match len_token {
Ok(x) => x,