We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8884aad commit 9dc197dCopy full SHA for 9dc197d
test/sys/test_mman.rs
@@ -30,13 +30,13 @@ fn test_mmap_largefile() {
30
31
// Calculate an offset that requires more than 32 bits to represent
32
// and is a multiple of the page size.
33
+ #[allow(clippy::unnecessary_cast)] // Some platforms need the cast.
34
let pagesize = match sysconf(SysconfVar::PAGE_SIZE) {
35
Ok(Some(x)) => x,
36
_ => {
37
skip!("test_mmap_largefile: Could not determine page size. Skipping test.");
38
}
- }
39
- as i64;
+ } as i64;
40
let pages_in_32bits = 1_0000_0000i64 / pagesize;
41
// Silence Clippy warning - offset's type varies by platform.
42
#[allow(clippy::useless_conversion)]
0 commit comments