mirror of
https://github.com/nushell/nushell.git
synced 2024-12-31 19:41:36 +01:00
Fix clippy in registry_query.rs (#10652)
The toolkit check passes locally; I'm not sure what the difference is there. cc @fdncred who merged the previous PR
This commit is contained in:
parent
ee4e0a933b
commit
2d72f892fe
@ -151,7 +151,7 @@ fn get_reg_hive(call: &Call) -> Result<RegKey, ShellError> {
|
||||
Vec::new(),
|
||||
));
|
||||
}
|
||||
let hive = flags.get(0).copied().unwrap_or("hkcu");
|
||||
let hive = flags.first().copied().unwrap_or("hkcu");
|
||||
let hkey = match hive {
|
||||
"hkcr" => HKEY_CLASSES_ROOT,
|
||||
"hkcu" => HKEY_CURRENT_USER,
|
||||
|
Loading…
Reference in New Issue
Block a user