Skip to content

Commit

Permalink
plugin: Remove linter errors from lsp
Browse files Browse the repository at this point in the history
Remove clippy errors on lsp.rs:
`the borrowed expression implements the required traits`

Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet committed Nov 25, 2024
1 parent 9b66b16 commit be47278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/gl-plugin/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ where
{
match buffer {
None => serializer.serialize_none(),
Some(buffer) => serializer.serialize_str(&hex::encode(&buffer.as_ref())),
Some(buffer) => serializer.serialize_str(&hex::encode(buffer)),
}
}

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

0 comments on commit be47278

Please sign in to comment.