mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
flashrom_tester: Fix cargo check and clippy warnings
Change-Id: I50c5af61e06df1bb6956f347cb6806a7eca6ce0e Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67472 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -143,14 +143,14 @@ pub fn get_hardware_wp() -> std::result::Result<bool, String> {
|
||||
match wp_s_val {
|
||||
Ok(v) => {
|
||||
if v == 1 {
|
||||
return Ok(true);
|
||||
Ok(true)
|
||||
} else if v == 0 {
|
||||
return Ok(false);
|
||||
Ok(false)
|
||||
} else {
|
||||
return Err("Unknown write protect value".into());
|
||||
Err("Unknown write protect value".into())
|
||||
}
|
||||
}
|
||||
Err(_) => return Err("Cannot parse write protect value".into()),
|
||||
Err(_) => Err("Cannot parse write protect value".into()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user