Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromefroe committed Nov 12, 2023
1 parent a4d8b30 commit eb1bb79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ extern crate siphasher;

use siphasher::sip::SipHasher;
use std::cmp::Ordering;
use std::collections::hash_map::RandomState;

Check warning on line 87 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unused import: `std::collections::hash_map::RandomState`

Check warning on line 87 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unused import: `std::collections::hash_map::RandomState`

Check failure on line 87 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `std::collections::hash_map::RandomState`

Check warning on line 87 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `std::collections::hash_map::RandomState`

Check warning on line 87 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `std::collections::hash_map::RandomState`
use std::fmt::Debug;
use std::hash::BuildHasher;
use std::hash::{Hash, Hasher};

Check warning on line 90 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unused import: `Hasher`

Check warning on line 90 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unused import: `Hasher`

Check failure on line 90 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `Hasher`

Check warning on line 90 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `Hasher`

Check warning on line 90 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

unused import: `Hasher`
Expand Down Expand Up @@ -283,9 +284,7 @@ where
S: BuildHasher,
T: Hash,
{
let mut hasher = hash_builder.build_hasher();
input.hash(&mut hasher);
hasher.finish()
hash_builder.hash_one(input)
}

#[cfg(test)]
Expand Down

0 comments on commit eb1bb79

Please sign in to comment.