[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:
parent
69dce9ed9f
commit
fae9f82c67
1 changed files with 2 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue