keymgr: Fix clippy lints.

This commit is contained in:
Gabriela Moldovan 2023-06-21 12:07:02 +01:00
parent d8743771e8
commit b8279c3421
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl KeyStore for ArtiNativeKeyStore {
.join(&key_path)
.map_err(|e| to_fs_err(e.into()))?;
match fs::remove_file(&abs_key_path) {
match fs::remove_file(abs_key_path) {
Ok(()) => Ok(Some(())),
Err(e) if matches!(e.kind(), ErrorKind::NotFound) => Ok(None),
Err(e) => Err(to_fs_err(e.into())),