File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44use 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
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl Locator for WindowsStore {
9898 if let Some ( symlinks) = & found_env. symlinks {
9999 // Normalize symlinks for comparison
100100 let normalized_symlinks: Vec < PathBuf > =
101- symlinks. iter ( ) . map ( |p| normalize_for_comparison ( p ) ) . collect ( ) ;
101+ symlinks. iter ( ) . map ( normalize_for_comparison) . collect ( ) ;
102102 // Check if we have found this exe.
103103 if list_of_possible_exes
104104 . iter ( )
You can’t perform that action at this time.
0 commit comments