Permalink
Browse files

Fix warning about SipHasher being deprecated.

  • Loading branch information...
thejpster authored and japaric committed Dec 26, 2016
1 parent 7e2285b commit 486524eae1b9632ed29ec186e748188aeafe66a0
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/sysroot.rs
@@ -1,5 +1,6 @@
use std::collections::hash_map::DefaultHasher;
use std::env;
use std::hash::{Hash, Hasher, SipHasher};
use std::hash::{Hash, Hasher};
use std::path::{Path, PathBuf};
use std::process::Command;
@@ -197,7 +198,7 @@ fn update_target_sysroot(target: &Target,
// - The [profile] in Cargo.toml minus its profile.*.lto sections
// - The contents of the target specification file
// - `rustc` version
let hasher = &mut SipHasher::new();
let hasher = &mut DefaultHasher::new();
for flag in prune_rustflags(rustc::flags(target, "rustflags")?) {
flag.hash(hasher);
@@ -240,7 +241,7 @@ fn update_host_sysroot(meta: &VersionMeta) -> Result<()> {
let host = &meta.host;
let lock = xargo::lock_rw(host)?;
let hasher = &mut SipHasher::new();
let hasher = &mut DefaultHasher::new();
host.hash(hasher);
let new_hash = hasher.finish();

0 comments on commit 486524e

Please sign in to comment.