Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nox authored and ghedo committed Oct 9, 2023
1 parent a3cdf87 commit 602bb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boring/src/bn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ impl Ord for BigNumRef {

impl PartialOrd for BigNum {
fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering> {
self.deref().partial_cmp(oth.deref())
Some(self.cmp(oth))
}
}

Expand Down
3 changes: 2 additions & 1 deletion hyper-boring/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ impl SessionCache {

self.sessions
.entry(key.clone())
.or_insert_with(LinkedHashSet::new)
.or_default()
.insert(session.clone());

self.reverse.insert(session, key);
}

Expand Down

0 comments on commit 602bb6d

Please sign in to comment.