Skip to content

Commit 29adeff

Browse files
committed
white space change by cargo fmt
1 parent b88b473 commit 29adeff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![feature(asm_experimental_arch)]
2-
32
#![no_std]
4-
53
#![crate_name = "avr_delay"]
64

75
use core::arch::asm;
@@ -31,7 +29,7 @@ pub fn delay(count: u64) {
3129
// Our asm busy-wait takes a 16 bit word as an argument,
3230
// so the max number of loops is 2^16
3331
let outer_count = count / 65536;
34-
let last_count = ((count % 65536)+1) as u16;
32+
let last_count = ((count % 65536) + 1) as u16;
3533
for _ in 0..outer_count {
3634
// Each loop through should be 4 cycles.
3735
let zero = 0u16;
@@ -77,4 +75,3 @@ mod tests {
7775
assert_eq!(2 + 2, 4);
7876
}
7977
}
80-

0 commit comments

Comments
 (0)