Skip to content

Commit 0c320f7

Browse files
committed
fixup! flash-gpu-descriptor: Allow symbolic magic number
1 parent 50a67bc commit 0c320f7

File tree

1 file changed

+2
-2
lines changed
  • framework_lib/src/commandline

1 file changed

+2
-2
lines changed

framework_lib/src/commandline/uefi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use alloc::string::String;
1+
use alloc::string::{String, ToString};
22
use alloc::vec;
33
use alloc::vec::Vec;
44

@@ -533,7 +533,7 @@ pub fn parse(args: &[String]) -> Cli {
533533
Some((hex_magic, sn))
534534
} else if magic.to_uppercase() == "GPU" {
535535
Some((SetGpuSerialMagic::WriteGPUConfig as u8, sn))
536-
} else if magic.to_uppercase() = "SSD" {
536+
} else if magic.to_uppercase() == "SSD" {
537537
Some((SetGpuSerialMagic::WriteSSDConfig as u8, sn))
538538
} else {
539539
println!(

0 commit comments

Comments
 (0)