We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91203b4 commit 551bc41Copy full SHA for 551bc41
crates/pet-fs/src/path.rs
@@ -3,9 +3,12 @@
3
4
use std::{
5
env,
6
- path::{Path, PathBuf, MAIN_SEPARATOR},
+ path::{Path, PathBuf},
7
};
8
9
+#[cfg(unix)]
10
+use std::path::MAIN_SEPARATOR;
11
+
12
/// Strips trailing path separators from a path, preserving root paths.
13
///
14
/// This function removes trailing `/` or `\` from paths while ensuring that root paths
0 commit comments