Skip to content

Commit 0aff382

Browse files
committed
Remove redundant map_err
1 parent 986469f commit 0aff382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdcard/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ where
253253
let send_res = bus.write(&[0xFF; 10]);
254254

255255
// On failure, it's important to still flush.
256-
let flush_res = bus.flush().map_err(|_| SdCardDeviceError::Spi);
256+
let flush_res = bus.flush();
257257

258258
send_res.map_err(|_| SdCardDeviceError::Spi)?;
259259
flush_res.map_err(|_| SdCardDeviceError::Spi)?;

0 commit comments

Comments
 (0)