Skip to content

Commit 0d0c7a5

Browse files
committed
Update from storage rework PR
2 parents a116f88 + 6a67ff2 commit 0d0c7a5

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ documentation = "https://docs.rs/embedded-storage"
1313
readme = "README.md"
1414
keywords = ["storage"]
1515
categories = ["embedded", "hardware-support", "no-std"]
16-
17-
[dependencies]
18-
heapless = "^0.5"

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub trait ReadStorage {
2626
/// Read a slice of data from the storage peripheral, starting the read
2727
/// operation at the given address offset, and reading `bytes.len()` bytes.
2828
///
29-
/// This should throw an error in case `bytes.len()` will be larger than
29+
/// This should throw an error in case `bytes.len()` will be larger than
3030
/// `self.capacity() - offset`.
3131
fn try_read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;
3232

src/nor_flash.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use crate::{iter::IterableByOverlaps, ReadStorage, Region, Storage};
2-
31
/// Read only NOR flash trait.
42
pub trait ReadNorFlash {
53
/// An enumeration of storage errors

0 commit comments

Comments
 (0)