Skip to content

Commit

Permalink
Allow false-positive lints
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Jan 13, 2024
1 parent 07d940e commit 5cc580e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ pub async fn try_repair<I: StorageItem, S: NorFlash>(
data_buffer: &mut [u8],
) -> Result<(), MapError<I::Error, S::Error>> {
query.invalidate_cache_state();
#[allow(dropping_references)]
drop(query);

crate::try_general_repair(flash, flash_range.clone(), &mut NoCache).await?;
Expand Down
1 change: 1 addition & 0 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ pub async fn try_repair<S: NorFlash>(
query: &mut impl Cache,
) -> Result<(), Error<S::Error>> {
query.invalidate_cache_state();
#[allow(dropping_references)]
drop(query);

crate::try_general_repair(flash, flash_range.clone(), &mut NoCache).await?;
Expand Down

0 comments on commit 5cc580e

Please sign in to comment.