Skip to content

Commit f40c12f

Browse files
committed
mmap_unix: fix a clippy warning
warning: this import is redundant --> src/mmap_unix.rs:20:1 | 20 | use libc; | ^^^^^^^^^ help: remove it entirely Signed-off-by: Liu Jiang <[email protected]>
1 parent 4922107 commit f40c12f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

coverage_config_x86_64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 85.1,
2+
"coverage_score": 84.8,
33
"exclude_path": "mmap_windows.rs",
44
"crate_features": "backend-mmap,backend-atomic"
55
}

src/mmap_unix.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use std::os::unix::io::AsRawFd;
1717
use std::ptr::null_mut;
1818
use std::result;
1919

20-
use libc;
21-
2220
use crate::guest_memory::FileOffset;
2321
use crate::mmap::{check_file_offset, AsSlice};
2422
use crate::volatile_memory::{self, compute_offset, VolatileMemory, VolatileSlice};

0 commit comments

Comments
 (0)