Fix clippy lint. Remove needless borrow

This commit is contained in:
Joshua McQuistan 2023-11-11 10:56:46 +00:00
parent 2976d4c033
commit 93556a3f8f

View file

@ -45,7 +45,7 @@ impl<T: Default + prost::Message> Codec<T> for ProstCodec {
fn encode(&self, val: &T) -> Result<String, Self::Error> { fn encode(&self, val: &T) -> Result<String, Self::Error> {
let buf = val.encode_to_vec(); let buf = val.encode_to_vec();
Ok(base64::engine::general_purpose::STANDARD.encode(&buf)) Ok(base64::engine::general_purpose::STANDARD.encode(buf))
} }
fn decode(&self, str: String) -> Result<T, Self::Error> { fn decode(&self, str: String) -> Result<T, Self::Error> {