Skip to content

Commit

Permalink
Fix lint errors with Rust 1.72
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Aug 29, 2023
1 parent e4d2d08 commit a5d2661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hash/precomputed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<T> Copy for PrecomputedHash<T> {}
impl<T> Clone for PrecomputedHash<T> {
#[inline]
fn clone(&self) -> Self {
Self::unsafe_from_u64(self.hash)
*self
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/signatures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Signatures {
}

pub fn _has_signatures_for(&self, func: &str) -> bool {
matches!(self.set.matches(func).into_iter().next(), Some(_))
self.set.matches(func).into_iter().next().is_some()
}

pub fn signatures_for(&self, func: &str) -> Option<Vec<Signature>> {
Expand Down

0 comments on commit a5d2661

Please sign in to comment.