Skip to content

Commit e610f80

Browse files
committed
windows chars
1 parent 0282d8d commit e610f80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uu/env/src/native_int_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl<'a> NativeStr<'a> {
257257
let n_prefix = to_native_int_representation(prefix);
258258
let result = self.match_cow(
259259
|b| b.strip_prefix(&*n_prefix).ok_or(()),
260-
|o| o.strip_prefix(&*n_prefix).map(<[u8]>::to_vec).ok_or(()),
260+
|o| o.strip_prefix(&*n_prefix).map(<[_]>::to_vec).ok_or(()),
261261
);
262262
result.ok()
263263
}
@@ -266,7 +266,7 @@ impl<'a> NativeStr<'a> {
266266
let n_prefix = to_native_int_representation(prefix);
267267
let result = self.match_cow_native(
268268
|b| b.strip_prefix(&*n_prefix).ok_or(()),
269-
|o| o.strip_prefix(&*n_prefix).map(<[u8]>::to_vec).ok_or(()),
269+
|o| o.strip_prefix(&*n_prefix).map(<[_]>::to_vec).ok_or(()),
270270
);
271271
result.ok()
272272
}

0 commit comments

Comments
 (0)