Skip to content

Commit

Permalink
mmap_unix: fix a clippy warning
Browse files Browse the repository at this point in the history
warning: this import is redundant
  --> src/mmap_unix.rs:20:1
   |
20 | use libc;
   | ^^^^^^^^^ help: remove it entirely

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
  • Loading branch information
jiangliu committed Aug 12, 2020
1 parent 73bf1c8 commit 6da5738
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mmap_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ use std::os::unix::io::AsRawFd;
use std::ptr::null_mut;
use std::result;

use libc;

use crate::guest_memory::FileOffset;
use crate::mmap::{check_file_offset, AsSlice};
use crate::volatile_memory::{self, compute_offset, VolatileMemory, VolatileSlice};
Expand Down

0 comments on commit 6da5738

Please sign in to comment.