Skip to content

Commit 1a86e28

Browse files
committedJul 19, 2024
Make capacity async and fallible
1 parent 4618091 commit 1a86e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎embedded-storage-async/src/nor_flash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub trait ReadNorFlash: ErrorType {
1919
async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;
2020

2121
/// The capacity of the peripheral in bytes.
22-
fn capacity(&self) -> usize;
22+
async fn capacity(&self) -> Result<usize, Self::Error>;
2323
}
2424

2525
/// NOR flash trait.

0 commit comments

Comments
 (0)