Skip to content

Commit 09877f8

Browse files
author
Alan Ngo
committed
formatting
1 parent 4c3e81f commit 09877f8

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

general/echo/kmdf/driver/DriverSync/src/device.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ extern "C" fn echo_evt_device_self_managed_io_start(device: WDFDEVICE) -> NTSTAT
157157
const WDF_REL_TIMEOUT_100_MS: i64 = {
158158
const UNITS: u128 = Duration::from_millis(100).as_nanos() / 100;
159159
const {
160-
assert!(
161-
UNITS <= i64::MAX as u128,
162-
"1,000,000 should fit in i64"
163-
);
160+
assert!(UNITS <= i64::MAX as u128, "1,000,000 should fit in i64");
164161
};
165162
-(UNITS as i64)
166163
};

general/echo/kmdf/driver/DriverSync/src/queue.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ pub unsafe fn echo_queue_initialize(device: WDFDEVICE) -> NTSTATUS {
141141
const TIMER_PERIOD_10_S: u32 = {
142142
const MILLIS: u128 = Duration::from_secs(10).as_millis();
143143
const {
144-
assert!(
145-
MILLIS <= u32::MAX as u128,
146-
"10,000 should fit in u32"
147-
);
144+
assert!(MILLIS <= u32::MAX as u128, "10,000 should fit in u32");
148145
};
149146
MILLIS as u32
150147
};

0 commit comments

Comments
 (0)