Skip to content

Commit 9dc197d

Browse files
committed
address rustfmt and clippy complaints about test_mman.rs
1 parent 8884aad commit 9dc197d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sys/test_mman.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ fn test_mmap_largefile() {
3030

3131
// Calculate an offset that requires more than 32 bits to represent
3232
// and is a multiple of the page size.
33+
#[allow(clippy::unnecessary_cast)] // Some platforms need the cast.
3334
let pagesize = match sysconf(SysconfVar::PAGE_SIZE) {
3435
Ok(Some(x)) => x,
3536
_ => {
3637
skip!("test_mmap_largefile: Could not determine page size. Skipping test.");
3738
}
38-
}
39-
as i64;
39+
} as i64;
4040
let pages_in_32bits = 1_0000_0000i64 / pagesize;
4141
// Silence Clippy warning - offset's type varies by platform.
4242
#[allow(clippy::useless_conversion)]

0 commit comments

Comments
 (0)