Skip to content

Commit

Permalink
Satisfy clippy (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem authored Oct 16, 2023
1 parent 8f8d949 commit edc7d49
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ dist/
**/*.rs.bk
Cargo.lock
/im-rc
flake.nix
flake.lock

# Devenv
.devenv*
devenv.local.nix

# direnv
.direnv

# pre-commit
.pre-commit-config.yaml
1 change: 0 additions & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
blacklisted-names = []
single-char-binding-names-threshold = 15
# I HAVE THE POWER OF OLEG
type-complexity-threshold = 999999
Expand Down
1 change: 1 addition & 0 deletions src/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ where
where
V: Default,
{
#[allow(clippy::unwrap_or_default)]
self.or_insert_with(Default::default)
}

Expand Down
1 change: 1 addition & 0 deletions src/ord/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ where
where
V: Default,
{
#[allow(clippy::unwrap_or_default)]
self.or_insert_with(Default::default)
}

Expand Down
2 changes: 1 addition & 1 deletion src/ord/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ impl<A: Ord + Eq> Eq for OrdSet<A> {}

impl<A: Ord> PartialOrd for OrdSet<A> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.iter().partial_cmp(other.iter())
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit edc7d49

Please sign in to comment.