aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Alex Martens <alex@thinglab.org> 2022-01-23 10:10:22 -0800
committerGravatar Alex Martens <alex@thinglab.org> 2022-01-23 10:10:22 -0800
commit3e8055719ba2bccd7a08dfb9df7023bf7a48aaeb (patch)
tree8b773ae24d4943897f4ef3511ad47faf180ba940 /xtask/src/lib.rs
parentc350114d8002d91bd71d08e7ad6ee2e960c2ed35 (diff)
downloadcortex-m-3e8055719ba2bccd7a08dfb9df7023bf7a48aaeb.tar.gz
cortex-m-3e8055719ba2bccd7a08dfb9df7023bf7a48aaeb.tar.zst
cortex-m-3e8055719ba2bccd7a08dfb9df7023bf7a48aaeb.zip
Fix most clippy lints
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r--xtask/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs
index ddbb88b..f6a57b3 100644
--- a/xtask/src/lib.rs
+++ b/xtask/src/lib.rs
@@ -232,7 +232,7 @@ pub fn check_host_side() {
{
let a = VectActive::from(19).unwrap();
let b = VectActive::from(20).unwrap();
- assert_eq!(a < b, true);
+ assert!(a < b);
}
// check TryFrom
@@ -240,7 +240,7 @@ pub fn check_host_side() {
use core::convert::TryInto;
use std::convert::TryFrom;
- let lts: LocalTimestampOptions = (16 as u8).try_into().unwrap();
+ let lts: LocalTimestampOptions = (16_u8).try_into().unwrap();
assert_eq!(lts, LocalTimestampOptions::EnabledDiv16);
assert!(LocalTimestampOptions::try_from(42).is_err());