Skip to content

Commit 551bc41

Browse files
committed
Fix clippy: make MAIN_SEPARATOR import conditional for unix
1 parent 91203b4 commit 551bc41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/pet-fs/src/path.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
use std::{
55
env,
6-
path::{Path, PathBuf, MAIN_SEPARATOR},
6+
path::{Path, PathBuf},
77
};
88

9+
#[cfg(unix)]
10+
use std::path::MAIN_SEPARATOR;
11+
912
/// Strips trailing path separators from a path, preserving root paths.
1013
///
1114
/// This function removes trailing `/` or `\` from paths while ensuring that root paths

0 commit comments

Comments
 (0)