From be4727896805b60a56aca60735f5b61fbf8de046 Mon Sep 17 00:00:00 2001 From: Peter Neuroth Date: Thu, 21 Nov 2024 15:10:39 +0100 Subject: [PATCH] plugin: Remove linter errors from lsp Remove clippy errors on lsp.rs: `the borrowed expression implements the required traits` Signed-off-by: Peter Neuroth --- libs/gl-plugin/src/lsp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gl-plugin/src/lsp.rs b/libs/gl-plugin/src/lsp.rs index 509211c98..2d778f011 100644 --- a/libs/gl-plugin/src/lsp.rs +++ b/libs/gl-plugin/src/lsp.rs @@ -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)), } } @@ -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()))) }