Skip to content

Commit 2e0f1d7

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix clippy
1 parent 997e0c0 commit 2e0f1d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

registry/src/registry_helper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl RegistryHelper {
201201
};
202202
if let Some(value_name) = &self.config.value_name {
203203
match reg_key.delete_value(value_name) {
204-
Ok(_) | Err(value::Error::NotFound(_, _)) => {
204+
Ok(()) | Err(value::Error::NotFound(_, _)) => {
205205
// if the value doesn't exist, we don't need to do anything
206206
},
207207
Err(e) => return Err(RegistryError::RegistryValue(e)),
@@ -221,7 +221,7 @@ impl RegistryHelper {
221221
};
222222

223223
match parent_reg_key.delete(subkey_name, true) {
224-
Ok(_) | Err(key::Error::NotFound(_, _)) => {
224+
Ok(()) | Err(key::Error::NotFound(_, _)) => {
225225
// if the subkey doesn't exist, we don't need to do anything
226226
},
227227
Err(e) => return Err(RegistryError::RegistryKey(e)),

0 commit comments

Comments
 (0)