File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -143,27 +143,11 @@ fn get_prefix(base: &BasePath) -> PrefixComponent<'_> {
143
143
}
144
144
145
145
fn push_separator ( base : & mut BasePathBuf ) {
146
- // https://github.com/rust-lang/rust/issues/89658
147
- /*
148
146
base. replace_with ( |mut base| {
149
147
// Add a separator if necessary.
150
148
base. push ( "" ) ;
151
149
base
152
150
} ) ;
153
- */
154
-
155
- const SEPARATOR : & str = "\\ " ;
156
-
157
- if let Some ( Component :: Prefix ( prefix) ) = base. components ( ) . next_back ( ) {
158
- if matches ! ( prefix. kind( ) , Prefix :: Disk ( _) | Prefix :: VerbatimDisk ( _) ) {
159
- return ;
160
- }
161
- }
162
- // This inefficient implementation must be used until the above issue is
163
- // resolved.
164
- if !base. 0 . to_string_lossy ( ) . ends_with ( SEPARATOR ) {
165
- base. 0 . push ( SEPARATOR ) ;
166
- }
167
151
}
168
152
169
153
pub ( super ) fn push ( base : & mut BasePathBuf , initial_path : & Path ) {
You can’t perform that action at this time.
0 commit comments