1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

fix ~ remove redundant clone()

util_name!() and execution_phrare!() now return a String directly
This commit is contained in:
Michael Debertol 2021-08-14 14:48:38 +02:00
parent 3039083521
commit 6ab3d27c4e
2 changed files with 2 additions and 2 deletions

View file

@ -466,7 +466,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let options = Options { let options = Options {
all: matches.is_present(options::ALL), all: matches.is_present(options::ALL),
util_name: util_name!().to_string(), util_name: util_name!(),
max_depth, max_depth,
total: matches.is_present(options::TOTAL), total: matches.is_present(options::TOTAL),
separate_dirs: matches.is_present(options::SEPARATE_DIRS), separate_dirs: matches.is_present(options::SEPARATE_DIRS),

View file

@ -36,7 +36,7 @@ fn get_userlogin() -> Option<String> {
static SUMMARY: &str = "Print user's login name"; static SUMMARY: &str = "Print user's login name";
fn usage() -> String { fn usage() -> String {
execution_phrase!().to_string() execution_phrase!()
} }
pub fn uumain(args: impl uucore::Args) -> i32 { pub fn uumain(args: impl uucore::Args) -> i32 {