diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-30 13:24:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-30 13:30:18 +0300 |
commit | d95a6470a4bcd9a28ae5603b863820921a05e969 (patch) | |
tree | eca9853a840fe5027a51c010963929482269b0d3 /src/cipher.rs | |
parent | cc3524fd60169a66c8a4e2178448bf5f6d07c99b (diff) | |
download | obnam2-d95a6470a4bcd9a28ae5603b863820921a05e969.tar.gz |
cleanup: fix things rustc/clipppy now complain about
Mostly
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow.
Sponsored-by: author
Diffstat (limited to 'src/cipher.rs')
-rw-r--r-- | src/cipher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cipher.rs b/src/cipher.rs index f19dc78..b8e02f2 100644 --- a/src/cipher.rs +++ b/src/cipher.rs @@ -95,7 +95,7 @@ impl CipherEngine { let payload = Payload::from(payload.as_slice()); let meta = std::str::from_utf8(meta)?; - let meta = ChunkMeta::from_str(&meta)?; + let meta = ChunkMeta::from_str(meta)?; let chunk = DataChunk::new(payload.msg.to_vec(), meta); |