mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
Fix clippy lint. Remove needless borrow
This commit is contained in:
parent
2976d4c033
commit
93556a3f8f
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl<T: Default + prost::Message> Codec<T> for ProstCodec {
|
|||
|
||||
fn encode(&self, val: &T) -> Result<String, Self::Error> {
|
||||
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> {
|
||||
|
|
Loading…
Add table
Reference in a new issue