Skip to content

Commit

Permalink
chore: obey clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Feb 17, 2024
1 parent 865aa34 commit 91106f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/management/archive/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ impl Metadata {
let mut version = String::new();
version.reserve(4);

let mut bytes = vec![];
bytes.reserve(8 * 1024);
let mut bytes = Vec::with_capacity(8 * 1024);

for mut entry in tar.entries()?.flatten() {
if entry.path().unwrap().to_string_lossy() == VERSION_FILENAME {
Expand Down

0 comments on commit 91106f0

Please sign in to comment.