File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -196,16 +196,15 @@ pub mod convert {
196
196
}
197
197
198
198
/// Convert paths with slashes to backslashes on windows and do nothing on unix.
199
- pub fn to_windows_separators_on_windows_or_panic < ' a > ( path : & std:: path:: Path ) -> Cow < ' _ , std:: path:: Path > {
199
+ pub fn to_windows_separators_on_windows_or_panic ( path : & std:: path:: Path ) -> Cow < ' _ , std:: path:: Path > {
200
200
#[ cfg( not( windows) ) ]
201
201
{
202
202
path. into ( )
203
203
}
204
204
#[ cfg( windows) ]
205
205
{
206
206
crate :: path:: from_byte_slice_or_panic_on_windows (
207
- crate :: path:: convert:: to_windows_separators ( crate :: path:: into_bytes_or_panic_on_windows ( path. as_ref ( ) ) )
208
- . as_ref ( ) ,
207
+ crate :: path:: convert:: to_windows_separators ( crate :: path:: into_bytes_or_panic_on_windows ( path) ) . as_ref ( ) ,
209
208
)
210
209
. to_owned ( )
211
210
. into ( )
You can’t perform that action at this time.
0 commit comments