diff options
author | Evan Benn <evanbenn@chromium.org> | 2022-09-09 15:35:28 +1000 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2022-09-19 07:25:55 +0000 |
commit | 1f65e9029b8c9d0fbe6c60d8fee249c57fd3f3fa (patch) | |
tree | 67a0721038563dc7b0d75da760387424217e2062 /util/flashrom_tester/src/tester.rs | |
parent | 813c68ad9cf2bc61b9923b3eab429ed318359281 (diff) | |
download | flashrom-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/tester.rs')
-rw-r--r-- | util/flashrom_tester/src/tester.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flashrom_tester/src/tester.rs b/util/flashrom_tester/src/tester.rs index e701763a..f2c38465 100644 --- a/util/flashrom_tester/src/tester.rs +++ b/util/flashrom_tester/src/tester.rs @@ -69,8 +69,8 @@ impl<'a> TestEnv<'a> { pub fn create(chip_type: FlashChip, cmd: &'a dyn Flashrom) -> Result<Self, FlashromError> { let rom_sz = cmd.get_size()?; let out = TestEnv { - chip_type: chip_type, - cmd: cmd, + chip_type, + cmd, layout: utils::get_layout_sizes(rom_sz)?, wp: WriteProtectState::from_hardware(cmd, chip_type)?, original_flash_contents: "/tmp/flashrom_tester_golden.bin".into(), @@ -462,7 +462,7 @@ impl<T: TestCase + ?Sized> TestCase for &T { } #[allow(dead_code)] -#[derive(Copy, Clone, PartialEq, Debug)] +#[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum TestConclusion { Pass, Fail, @@ -514,7 +514,7 @@ where results } -#[derive(Debug, PartialEq, Clone, Copy)] +#[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum OutputFormat { Pretty, Json, |