Fix failing clippy lints
Diff
Cargo.toml | 2 +-
src/high_level.rs | 2 +-
src/low_level.rs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
@@ -16,7 +16,7 @@ repository = "https://github.com/w4/packfile"
bytes = "1.2"
flate2 = "1.0"
hex = "0.4"
indexmap = "1.9"
indexmap = "2.0"
itoa = "1.0"
sha1 = "0.10"
thiserror = "1.0"
@@ -145,7 +145,7 @@ impl Tree {
},
TreeItem::Tree(tree) => LowLevelTreeItem {
kind: TreeItemKind::Directory,
sort_name: format!("{}/", name),
sort_name: format!("{name}/"),
name,
@@ -331,7 +331,7 @@ impl PackFileEntry {
let mut out =
BytesMut::with_capacity(file_prefix.len() + " ".len() + size_len + "\n".len() + size);
write!(out, "{} {}\0", file_prefix, size)?;
write!(out, "{file_prefix} {size}\0")?;
match self {
Self::Commit(commit) => {
commit.encode_to(&mut out)?;