Skip to content

Commit

Permalink
Fix test + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Jan 17, 2024
1 parent a25c96b commit e6616ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ mod map_tests {
async fn page_state_cache() {
assert_eq!(
run_test(PageStateCache::<NUM_PAGES>::new()).await,
(171543, 5201, 198)
(172831, 5201, 198)
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub async fn store_item<I: StorageItem, S: NorFlash>(
) -> Result<(), MapError<I::Error, S::Error>> {
assert_eq!(flash_range.start % S::ERASE_SIZE as u32, 0);
assert_eq!(flash_range.end % S::ERASE_SIZE as u32, 0);

assert!(flash_range.end - flash_range.start >= S::ERASE_SIZE as u32 * 2);

assert!(S::ERASE_SIZE >= S::WORD_SIZE * 3);
Expand Down

0 comments on commit e6616ff

Please sign in to comment.