diff --git a/src/uu/test/Cargo.toml b/src/uu/test/Cargo.toml index 79d202f7f..28b7362b1 100644 --- a/src/uu/test/Cargo.toml +++ b/src/uu/test/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" path = "src/test.rs" [dependencies] -clap = { version = "3.2", features = ["wrap_help", "cargo"] } +clap = { version = "4.0", features = ["wrap_help", "cargo"] } libc = "0.2.135" uucore = { version=">=0.0.16", package="uucore", path="../../uucore" } diff --git a/src/uu/test/src/test.rs b/src/uu/test/src/test.rs index e6e2e5360..aaeb351e5 100644 --- a/src/uu/test/src/test.rs +++ b/src/uu/test/src/test.rs @@ -93,7 +93,7 @@ for details about the options it supports."; const ABOUT: &str = "Check file types and compare values."; -pub fn uu_app<'a>() -> Command<'a> { +pub fn uu_app() -> Command { Command::new(uucore::util_name()) .version(crate_version!()) .about(ABOUT) diff --git a/tests/by-util/test_test.rs b/tests/by-util/test_test.rs index 9a5186302..6aa43133c 100644 --- a/tests/by-util/test_test.rs +++ b/tests/by-util/test_test.rs @@ -903,7 +903,7 @@ fn test_bracket_syntax_help() { let scenario = TestScenario::new("["); let mut ucmd = scenario.ucmd(); - ucmd.arg("--help").succeeds().stdout_contains("USAGE:"); + ucmd.arg("--help").succeeds().stdout_contains("Usage:"); } #[test]