Skip to content

Commit d836f23

Browse files
committed
style(sdmmc): fix format
1 parent 46cd465 commit d836f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axdriver_block/src/sdmmc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl SdMmcDriver {
1717
/// controller's register block and that no other code is concurrently
1818
/// accessing the same hardware.
1919
pub unsafe fn new(base: usize) -> Self {
20-
Self(SdMmc::new(base))
20+
Self(unsafe { SdMmc::new(base) })
2121
}
2222
}
2323

@@ -49,7 +49,7 @@ impl BlockDriverOps for SdMmcDriver {
4949
}
5050

5151
// check if block id exceeds device capacity
52-
if block_id.saturating_add(blocks.len() as u64) > self.0.num_blocks(){
52+
if block_id.saturating_add(blocks.len() as u64) > self.0.num_blocks() {
5353
return Err(DevError::InvalidParam);
5454
}
5555

@@ -70,7 +70,7 @@ impl BlockDriverOps for SdMmcDriver {
7070
}
7171

7272
// check if block id exceeds device capacity
73-
if block_id.saturating_add(blocks.len() as u64) > self.0.num_blocks(){
73+
if block_id.saturating_add(blocks.len() as u64) > self.0.num_blocks() {
7474
return Err(DevError::InvalidParam);
7575
}
7676

0 commit comments

Comments
 (0)