Skip to content

Commit

Permalink
Resolve redundant import warning
Browse files Browse the repository at this point in the history
    warning: the item `Ord` is imported redundantly
       --> src/atom.rs:1:16
        |
    1   | use std::cmp::{Ord, Ordering, PartialOrd};
        |                ^^^
        |
       ::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
        |
    125 |     pub use super::v1::*;
        |             --------- the item `Ord` is already defined here
        |
        = note: `#[warn(unused_imports)]` on by default

    warning: the item `PartialOrd` is imported redundantly
       --> src/atom.rs:1:31
        |
    1   | use std::cmp::{Ord, Ordering, PartialOrd};
        |                               ^^^^^^^^^^
        |
       ::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
        |
    125 |     pub use super::v1::*;
        |             --------- the item `PartialOrd` is already defined here
  • Loading branch information
dtolnay committed Feb 19, 2024
1 parent d933911 commit 74068f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atom.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::cmp::{Ord, Ordering, PartialOrd};
use std::cmp::Ordering;
use std::str;

#[derive(Copy, Clone, Eq, PartialEq)]
Expand Down

0 comments on commit 74068f8

Please sign in to comment.