diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-21 08:08:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-21 09:14:46 +0300 |
commit | c667532dedb23188be7cb59d26994060c67e0c38 (patch) | |
tree | f27bbacd84dba319b72935ac4e54e279c3f48648 /src/chunker.rs | |
parent | fa2570fe73dd4df1f2e00bd6f513522a30f9aedf (diff) | |
download | obnam2-c667532dedb23188be7cb59d26994060c67e0c38.tar.gz |
chore: fix blemishes found by clippy
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'src/chunker.rs')
-rw-r--r-- | src/chunker.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chunker.rs b/src/chunker.rs index 29f8a90..9883f89 100644 --- a/src/chunker.rs +++ b/src/chunker.rs @@ -31,8 +31,7 @@ impl FileChunks { filename: &Path, kind: LabelChecksumKind, ) -> Self { - let mut buf = vec![]; - buf.resize(chunk_size, 0); + let buf = vec![0; chunk_size]; Self { chunk_size, kind, |