mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fix ~ remove redundant clone()
util_name!() and execution_phrare!() now return a String directly
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
|
||||
let options = Options {
|
||||
all: matches.is_present(options::ALL),
|
||||
util_name: util_name!().to_string(),
|
||||
util_name: util_name!(),
|
||||
max_depth,
|
||||
total: matches.is_present(options::TOTAL),
|
||||
separate_dirs: matches.is_present(options::SEPARATE_DIRS),
|
||||
|
||||
@@ -36,7 +36,7 @@ fn get_userlogin() -> Option<String> {
|
||||
static SUMMARY: &str = "Print user's login name";
|
||||
|
||||
fn usage() -> String {
|
||||
execution_phrase!().to_string()
|
||||
execution_phrase!()
|
||||
}
|
||||
|
||||
pub fn uumain(args: impl uucore::Args) -> i32 {
|
||||
|
||||
Reference in New Issue
Block a user