Skip to content

Commit d2c6dac

Browse files
authored
Remove sync ErrorType implementation for &mut
This fixes the regression introduced in #33. The ErrorType is shared for both the sync and async variant, so there should only be one implemenetation
1 parent f5a2565 commit d2c6dac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

embedded-storage-async/src/nor_flash.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ pub trait NorFlash: ReadNorFlash {
4949
async fn write(&mut self, offset: u32, bytes: &[u8]) -> Result<(), Self::Error>;
5050
}
5151

52-
impl<T: ErrorType> ErrorType for &mut T {
53-
type Error = T::Error;
54-
}
55-
5652
impl<T: ReadNorFlash> ReadNorFlash for &mut T {
5753
const READ_SIZE: usize = T::READ_SIZE;
5854

0 commit comments

Comments
 (0)