Skip to content

Commit 0991061

Browse files
committed
Run cargo fmt
1 parent ad99e0c commit 0991061

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ impl SerialPort {
6464
}
6565

6666
fn line_sts(&self) -> LineStsFlags {
67-
unsafe {
68-
LineStsFlags::from_bits_truncate(self.line_sts.read())
69-
}
67+
unsafe { LineStsFlags::from_bits_truncate(self.line_sts.read()) }
7068
}
7169

7270
// pub fn receive(&mut self) {
@@ -85,7 +83,7 @@ impl SerialPort {
8583
self.data.write(b' ');
8684
while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
8785
self.data.write(8)
88-
},
86+
}
8987
_ => {
9088
while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
9189
self.data.write(data);

0 commit comments

Comments
 (0)