Skip to content

Commit 0875fb7

Browse files
Fixed lint issues in gix (#421)
Co-authored-by: Jason Ozias <[email protected]>
1 parent 26d6d7c commit 0875fb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vergen-gix/src/gix/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use gix::{
1313
dir::{entry::Status, walk::EmissionMode},
1414
discover,
1515
head::Kind,
16-
progress::Discard,
1716
Commit, Head, Id, Repository,
1817
};
1918
use std::{
@@ -319,7 +318,7 @@ impl Gix {
319318
Ok(())
320319
}
321320

322-
#[allow(clippy::too_many_lines)]
321+
#[allow(clippy::too_many_lines, clippy::default_trait_access)]
323322
fn inner_add_git_map_entries(
324323
&self,
325324
idempotent: bool,
@@ -454,7 +453,7 @@ impl Gix {
454453
.any(|i| matches!(i, Ok(i) if i.entry.status == Status::Untracked));
455454
}
456455

457-
add_map_entry(VergenKey::GitDirty, format!("{}", dirty), cargo_rustc_env);
456+
add_map_entry(VergenKey::GitDirty, format!("{dirty}"), cargo_rustc_env);
458457
}
459458
}
460459

0 commit comments

Comments
 (0)