Skip to content

Commit 77114f7

Browse files
committed
clippy: Remove needless borrow
warning: this expression creates a reference which is immediately dereferenced by the compiler --> framework_lib\src\esrt\mod.rs:441:35 | 441 | fw_class: GUID::parse(&short_guid).ok()?.into(), | ^^^^^^^^^^^ help: change this to: `short_guid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent d77d4e4 commit 77114f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework_lib/src/esrt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ pub fn get_esrt() -> Option<Esrt> {
438438
let short_guid = guid.trim_matches(|c| c == '{' || c == '}');
439439
let esrt_entry = esrt.open_subkey(&guid).ok()?;
440440
let esrt = EsrtResourceEntry {
441-
fw_class: GUID::parse(&short_guid).ok()?.into(),
441+
fw_class: GUID::parse(short_guid).ok()?.into(),
442442
fw_type: esrt_entry.get_value("Type").ok()?,
443443
fw_version: esrt_entry.get_value("Version").ok()?,
444444
lowest_supported_fw_version: esrt_entry.get_value("LowestSupportedVersion").ok()?,

0 commit comments

Comments
 (0)