Skip to content

Commit

Permalink
fix unused lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Mar 5, 2025
1 parent 74a4fe6 commit 0fbf48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symbolic-common/src/byteview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl<'a> ByteView<'a> {
#[cfg(unix)]
ByteViewBacking::Mmap(mmap) => mmap.advise(hint.to_madvise()),
#[cfg(not(unix))]
ByteViewBacking::Mmap(_) => Ok(()),
ByteViewBacking::Mmap(_) => Ok(drop(hint)), // drop(hint) to silence unused lint
}
}
}
Expand Down

0 comments on commit 0fbf48d

Please sign in to comment.