Skip to content

Commit e9fc2d1

Browse files
committed
windows chars
1 parent 051c73a commit e9fc2d1

2 files changed

Lines changed: 4 additions & 4 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
}

src/uu/numfmt/src/numfmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
339339
}
340340

341341
pub fn uu_app() -> Command {
342-
Command::new(uucore::util_name())
342+
Command::new(util_name())
343343
.version(uucore::crate_version!())
344-
.help_template(uucore::localized_help_template(uucore::util_name()))
344+
.help_template(uucore::localized_help_template(util_name()))
345345
.about(translate!("numfmt-about"))
346346
.after_help(translate!("numfmt-after-help"))
347347
.override_usage(format_usage(&translate!("numfmt-usage")))

0 commit comments

Comments
 (0)