aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/lib.rs
diff options
context:
space:
mode:
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());