Skip to content

Commit e029eb4

Browse files
committed
cleanup (#426)
- remove unused `Options` type - use `expected_trust()` function consistently
1 parent 136eb37 commit e029eb4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

git-discover/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ pub mod is_git {
2828
#[error(transparent)]
2929
GitFile(#[from] crate::path::from_gitdir_file::Error),
3030
}
31-
32-
/// Options for [`crate::is_git()`].
33-
pub struct Options {}
3431
}
3532

3633
mod is;

git-discover/tests/upwards/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn from_dir_with_dot_dot() -> crate::Result {
9494
working_dir.canonicalize()?,
9595
"a relative path that climbs above the test repo should yield the gitoxide repo"
9696
);
97-
assert_eq!(trust, git_sec::Trust::Full);
97+
assert_eq!(trust, expected_trust());
9898
Ok(())
9999
}
100100

0 commit comments

Comments
 (0)