[No-auto] lib/entry/ref: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:28:04 +02:00 committed by Matthias Beyer
parent 69dce9ed9f
commit fae9f82c67

View file

@ -288,11 +288,8 @@ impl<'a, H> MutRef for MutRefWithHasher<'a, H>
let _ = header.delete("ref.relpath").context("Removing ref.relpath")?;
if let Some(hash_tbl) = header.read_mut("ref.hash")? {
match hash_tbl {
Value::Table(ref mut tbl) => *tbl = Map::new(),
_ => {
// should not happen
}
if let Value::Table(ref mut tbl) = hash_tbl {
*tbl = Map::new();
}
}