Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Lint derive_hash_xor_eq renamed to derived_hash_with_manual_eq
Browse files Browse the repository at this point in the history
    warning: lint `clippy::derive_hash_xor_eq` has been renamed to `clippy::derived_hash_with_manual_eq`
       --> src/lib.rs:146:5
        |
    146 |     clippy::derive_hash_xor_eq,
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::derived_hash_with_manual_eq`

    warning: lint `clippy::derive_hash_xor_eq` has been renamed to `clippy::derived_hash_with_manual_eq`
       --> src/mapping.rs:307:9
        |
    307 | #[allow(clippy::derive_hash_xor_eq)]
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::derived_hash_with_manual_eq`

    warning: lint `clippy::derive_hash_xor_eq` has been renamed to `clippy::derived_hash_with_manual_eq`
       --> src/number.rs:521:9
        |
    521 | #[allow(clippy::derive_hash_xor_eq)]
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::derived_hash_with_manual_eq`
  • Loading branch information
dtolnay committed Jan 13, 2023
1 parent bb17d5e commit 8261d93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
clippy::cast_possible_wrap,
clippy::cast_precision_loss,
clippy::cast_sign_loss,
clippy::derive_hash_xor_eq,
clippy::derive_partial_eq_without_eq,
clippy::derived_hash_with_manual_eq,
clippy::doc_markdown,
clippy::items_after_statements,
clippy::manual_map,
Expand Down
2 changes: 1 addition & 1 deletion src/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ where
}
}

#[allow(clippy::derive_hash_xor_eq)]
#[allow(clippy::derived_hash_with_manual_eq)]
impl Hash for Mapping {
fn hash<H: Hasher>(&self, state: &mut H) {
// Hash the kv pairs in a way that is not sensitive to their order.
Expand Down
2 changes: 1 addition & 1 deletion src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ from_float!(f32 f64);

// This is fine, because we don't _really_ implement hash for floats
// all other hash functions should work as expected
#[allow(clippy::derive_hash_xor_eq)]
#[allow(clippy::derived_hash_with_manual_eq)]
impl Hash for Number {
fn hash<H: Hasher>(&self, state: &mut H) {
match self.n {
Expand Down

0 comments on commit 8261d93

Please sign in to comment.