From 0ef71d29a857118e2f6742389793beb3f63266b2 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 2 Apr 2017 20:38:45 -0500 Subject: [PATCH] rustfmt --- src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 647f56c205..2e2ce0b2a9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,7 +84,10 @@ where } /// Mutably borrows the resource for the duration of `interrupt::free` - pub fn cs_borrow_mut<'cs>(&self, _ctxt: &'cs mut CriticalSection) -> &'cs mut P { + pub fn cs_borrow_mut<'cs>( + &self, + _ctxt: &'cs mut CriticalSection, + ) -> &'cs mut P { unsafe { &mut *self.peripheral.get() } } } @@ -189,7 +192,10 @@ impl Resource { } /// Mutably borrows the resource for the duration of `interrupt::free` - pub fn cs_borrow_mut<'cs>(&self, _ctxt: &'cs mut CriticalSection) -> &'cs mut T { + pub fn cs_borrow_mut<'cs>( + &self, + _ctxt: &'cs mut CriticalSection, + ) -> &'cs mut T { unsafe { &mut *self.data.get() } } }