Skip to content

Commit 17c71aa

Browse files
nepetcdecker
authored andcommitted
plugin: Remove linter errors from lsp
Remove clippy errors on lsp.rs: `the borrowed expression implements the required traits` Signed-off-by: Peter Neuroth <[email protected]>
1 parent d92d744 commit 17c71aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/gl-plugin/src/lsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ where
161161
{
162162
match buffer {
163163
None => serializer.serialize_none(),
164-
Some(buffer) => serializer.serialize_str(&hex::encode(&buffer.as_ref())),
164+
Some(buffer) => serializer.serialize_str(&hex::encode(buffer)),
165165
}
166166
}
167167

@@ -172,5 +172,5 @@ where
172172
{
173173
use serde::de::Error;
174174
String::deserialize(deserializer)
175-
.and_then(|string| Vec::from_hex(&string).map_err(|err| Error::custom(err.to_string())))
175+
.and_then(|string| Vec::from_hex(string).map_err(|err| Error::custom(err.to_string())))
176176
}

0 commit comments

Comments
 (0)