Update immediate and transitive dependencies

I don't think this has happened in awhile but I've run a `cargo update`
as well as trimming some of the duplicate/older dependencies in
`Cargo.lock` by updating some of our immediate dependencies as well.
This commit is contained in:
Alex Crichton
2020-11-05 08:16:48 -08:00
parent ab1958434a
commit e4c3fc5cf2
27 changed files with 414 additions and 487 deletions

View File

@@ -50,7 +50,7 @@ impl<'config> ModuleCacheEntry<'config> {
{
let mut hasher = Sha256Hasher(Sha256::new());
state.hash(&mut hasher);
let hash: [u8; 32] = hasher.0.result().into();
let hash: [u8; 32] = hasher.0.finalize().into();
// standard encoding uses '/' which can't be used for filename
let hash = base64::encode_config(&hash, base64::URL_SAFE_NO_PAD);
@@ -181,7 +181,7 @@ impl Hasher for Sha256Hasher {
}
fn write(&mut self, bytes: &[u8]) {
self.0.input(bytes);
self.0.update(bytes);
}
}