From e09d718ca749130956bed261ba1af61d24a12a16 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 17 Jan 2023 16:10:32 +0100 Subject: [PATCH] join: remove NAME constant --- src/uu/join/src/join.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/join/src/join.rs b/src/uu/join/src/join.rs index 396ed6a6d..627e26b45 100644 --- a/src/uu/join/src/join.rs +++ b/src/uu/join/src/join.rs @@ -24,8 +24,6 @@ use uucore::display::Quotable; use uucore::error::{set_exit_code, UError, UResult, USimpleError}; use uucore::{crash, crash_if_err}; -static NAME: &str = "join"; - #[derive(Debug)] enum JoinError { IOError(std::io::Error), @@ -699,7 +697,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { } pub fn uu_app() -> Command { - Command::new(NAME) + Command::new(uucore::util_name()) .version(crate_version!()) .about( "For each pair of input lines with identical join fields, write a line to