Skip to content

Commit

Permalink
Fix unused imports
Browse files Browse the repository at this point in the history
    warning: unused imports: `parse_concise_float`, `parse_truncated_float`
      --> tests/../src/lexical/mod.rs:38:23
       |
    38 | pub use self::parse::{parse_concise_float, parse_truncated_float};
       |                       ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(unused_imports)]` on by default

    warning: unused import: `std::vec::Vec`
      --> tests/lexical.rs:30:13
       |
    30 |     pub use std::vec::Vec;
       |             ^^^^^^^^^^^^^

    warning: unused imports: `cmp`, `iter`, `mem`, `ops`
      --> tests/lexical.rs:31:19
       |
    31 |     pub use std::{cmp, iter, mem, ops};
       |                   ^^^  ^^^^  ^^^  ^^^
  • Loading branch information
dtolnay committed Oct 25, 2023
1 parent 39f5ad1 commit 421a70d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions tests/lexical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ extern crate alloc;
#[path = "../src/lexical/mod.rs"]
mod lexical;

mod lib {
pub use std::vec::Vec;
pub use std::{cmp, iter, mem, ops};
}

#[path = "lexical/algorithm.rs"]
mod algorithm;

Expand Down
2 changes: 1 addition & 1 deletion tests/lexical/parse.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Adapted from https://github.com/Alexhuszagh/rust-lexical.

use crate::lexical::num::Float;
use crate::lexical::parse::{parse_concise_float, parse_truncated_float};
use crate::lexical::{parse_concise_float, parse_truncated_float};
use core::f64;
use core::fmt::Debug;

Expand Down

0 comments on commit 421a70d

Please sign in to comment.