Skip to content

Commit

Permalink
src: Remove unused imports raised by linter
Browse files Browse the repository at this point in the history
I observed the following warning while running the tests, let's address
them:

    warning: the item `time` is imported redundantly
      --> src/helpers.rs:22:5
       |
    22 | use time;
       |     ^^^^
       |
      ::: src/lib.rs:32:1
       |
    32 | extern crate time;
       | ------------------ the item `time` is already imported here
       |
       = note: `#[warn(unused_imports)]` on by default

    warning: the item `std` is imported redundantly
     --> src/jit.rs:8:5
      |
    8 | use std;
      |     ^^^ the item `std` is already imported by prelude

Signed-off-by: Quentin Monnet <qmo@qmon.net>
  • Loading branch information
qmonnet committed Mar 14, 2024
1 parent 21b2e41 commit 505d54a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
extern crate libc;

use std::u64;
use time;

// Helpers associated to kernel helpers
// See also linux/include/uapi/linux/bpf.h in Linux kernel sources.
Expand Down
1 change: 0 additions & 1 deletion src/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Copyright 2016 6WIND S.A. <quentin.monnet@6wind.com>
// (Translation to Rust, MetaBuff addition)

use std;
use std::mem;
use std::collections::HashMap;
use std::fmt::Formatter;
Expand Down

0 comments on commit 505d54a

Please sign in to comment.