Skip to content

Commit 380174f

Browse files
committed
thanks clippy
1 parent 99365f2 commit 380174f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

git-features/src/path.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,15 @@ pub mod convert {
196196
}
197197

198198
/// 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> {
200200
#[cfg(not(windows))]
201201
{
202202
path.into()
203203
}
204204
#[cfg(windows)]
205205
{
206206
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(),
209208
)
210209
.to_owned()
211210
.into()

0 commit comments

Comments
 (0)