Skip to content

Commit 6c4dfb2

Browse files
committed
Run rustfmt
1 parent d448d97 commit 6c4dfb2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/bus.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ impl<USB: UsbPeripheral> UsbBus<USB> {
105105
/// wake up in other mode is invalid and host will most likely disable such a device.
106106
pub fn remote_wakeup(&self, resume: bool) {
107107
interrupt::free(|cs| {
108-
self.regs.borrow(cs)
109-
.cntr.modify(|r, w| w.resume().bit(resume && r.fsusp().is_suspend()));
108+
self.regs
109+
.borrow(cs)
110+
.cntr
111+
.modify(|r, w| w.resume().bit(resume && r.fsusp().is_suspend()));
110112
})
111113
}
112114
}
@@ -320,10 +322,7 @@ impl<USB: UsbPeripheral> usb_device::bus::UsbBus for UsbBus<USB> {
320322

321323
fn suspend(&self) {
322324
interrupt::free(|cs| {
323-
self.regs
324-
.borrow(cs)
325-
.cntr
326-
.modify(|_, w| w.fsusp().set_bit());
325+
self.regs.borrow(cs).cntr.modify(|_, w| w.fsusp().set_bit());
327326
});
328327
}
329328

0 commit comments

Comments
 (0)