Skip to content

Commit

Permalink
Remove some warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Kaitchuck <[email protected]>
  • Loading branch information
tkaitchuck committed Jul 22, 2024
1 parent 67016c0 commit f169eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use std::env;

fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(fuzzing)");
println!("cargo:rustc-check-cfg=cfg(feature, values(\"folded_multiply\", \"specialize\"))");
if let Some(true) = version_check::supports_feature("specialize") {
println!("cargo:rustc-cfg=feature=\"specialize\"");
}
Expand Down
2 changes: 0 additions & 2 deletions src/random_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ impl <T> BuildHasher for RandomState<T> {
/// implementation of [`Hash`]. The way to create a combined hash of
/// multiple values is to call [`Hash::hash`] multiple times using the same
/// [`Hasher`], not to call this method repeatedly and combine the results.
#[cfg(feature = "specialize")]
#[inline]
fn hash_one<V: Hash>(&self, x: V) -> u64 {
use crate::specialize::CallHasher;
Expand Down Expand Up @@ -624,7 +623,6 @@ impl <T> BuildHasher for SmallState<T> {
/// implementation of [`Hash`]. The way to create a combined hash of
/// multiple values is to call [`Hash::hash`] multiple times using the same
/// [`Hasher`], not to call this method repeatedly and combine the results.
#[cfg(feature = "specialize")]
#[inline]
fn hash_one<V: Hash>(&self, x: V) -> u64 {
use crate::specialize::CallHasher;
Expand Down

0 comments on commit f169eaf

Please sign in to comment.