return None;
}
- let mut hasher = SipHasher::new_with_keys(0, 0);
+ let mut hasher = SipHasher::new();
// This is a generic version number that can be changed to make
// backwards-incompatible changes to any file structures in the output
}
pub fn hash_u64<H: Hash>(hashable: H) -> u64 {
- let mut hasher = SipHasher::new_with_keys(0, 0);
+ let mut hasher = SipHasher::new();
hashable.hash(&mut hasher);
hasher.finish()
}
}
fn rustc_fingerprint(path: &Path, rustup_rustc: &Path) -> CargoResult<u64> {
- let mut hasher = SipHasher::new_with_keys(0, 0);
+ let mut hasher = SipHasher::new();
let path = paths::resolve_executable(path)?;
path.hash(&mut hasher);
}
fn process_fingerprint(cmd: &ProcessBuilder) -> u64 {
- let mut hasher = SipHasher::new_with_keys(0, 0);
+ let mut hasher = SipHasher::new();
cmd.get_args().hash(&mut hasher);
let mut env = cmd.get_envs().iter().collect::<Vec<_>>();
env.sort_unstable();