From 95ef3643e31bc311c85fbe8a9b7f7dc48fa11143 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 11 Jun 2025 10:21:11 +0200 Subject: [PATCH] realpath: use consts for all options --- src/uu/realpath/src/realpath.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/uu/realpath/src/realpath.rs b/src/uu/realpath/src/realpath.rs index 8caf7c8e2..339787eb6 100644 --- a/src/uu/realpath/src/realpath.rs +++ b/src/uu/realpath/src/realpath.rs @@ -21,17 +21,17 @@ use uucore::{ show_if_err, }; -static OPT_QUIET: &str = "quiet"; -static OPT_STRIP: &str = "strip"; -static OPT_ZERO: &str = "zero"; -static OPT_PHYSICAL: &str = "physical"; -static OPT_LOGICAL: &str = "logical"; +const OPT_QUIET: &str = "quiet"; +const OPT_STRIP: &str = "strip"; +const OPT_ZERO: &str = "zero"; +const OPT_PHYSICAL: &str = "physical"; +const OPT_LOGICAL: &str = "logical"; const OPT_CANONICALIZE_MISSING: &str = "canonicalize-missing"; const OPT_CANONICALIZE_EXISTING: &str = "canonicalize-existing"; const OPT_RELATIVE_TO: &str = "relative-to"; const OPT_RELATIVE_BASE: &str = "relative-base"; -static ARG_FILES: &str = "files"; +const ARG_FILES: &str = "files"; #[uucore::main] pub fn uumain(args: impl uucore::Args) -> UResult<()> {