aboutsummaryrefslogtreecommitdiffstats
path: root/util/flashrom_tester/src/utils.rs
diff options
context:
space:
mode:
authorEvan Benn <evanbenn@chromium.org>2022-09-09 15:35:28 +1000
committerAngel Pons <th3fanbus@gmail.com>2022-09-19 07:25:55 +0000
commit1f65e9029b8c9d0fbe6c60d8fee249c57fd3f3fa (patch)
tree67a0721038563dc7b0d75da760387424217e2062 /util/flashrom_tester/src/utils.rs
parent813c68ad9cf2bc61b9923b3eab429ed318359281 (diff)
downloadflashrom-1f65e9029b8c9d0fbe6c60d8fee249c57fd3f3fa.tar.gz
flashrom-1f65e9029b8c9d0fbe6c60d8fee249c57fd3f3fa.tar.bz2
flashrom-1f65e9029b8c9d0fbe6c60d8fee249c57fd3f3fa.zip
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>
Diffstat (limited to 'util/flashrom_tester/src/utils.rs')
-rw-r--r--util/flashrom_tester/src/utils.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flashrom_tester/src/utils.rs b/util/flashrom_tester/src/utils.rs
index e8fbb531..4e8dd7cc 100644
--- a/util/flashrom_tester/src/utils.rs
+++ b/util/flashrom_tester/src/utils.rs
@@ -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()),
}
}