Skip to content

Commit

Permalink
Fix unused import in test when built without std
Browse files Browse the repository at this point in the history
    warning: unused import: `std::path::PathBuf`
     --> tests/test_expr.rs:4:5
      |
    4 | use std::path::PathBuf;
      |     ^^^^^^^^^^^^^^^^^^
      |
      = note: `#[warn(unused_imports)]` on by default
  • Loading branch information
dtolnay committed Jan 10, 2025
1 parent eecd247 commit 8b5f2d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::iter_cloned_collect, clippy::uninlined_format_args)]

use core::fmt::Display;
#[cfg(feature = "std")]
use std::path::PathBuf;
use thiserror::Error;

Expand Down

0 comments on commit 8b5f2d7

Please sign in to comment.