diff --git a/src/storage/codec_prost.rs b/src/storage/codec_prost.rs index 28986b2..1c90ec8 100644 --- a/src/storage/codec_prost.rs +++ b/src/storage/codec_prost.rs @@ -45,7 +45,7 @@ impl Codec for ProstCodec { fn encode(&self, val: &T) -> Result { 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 {