From 6c37cdebce7824351d27d8ff1a93f9cc27298b8f Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Tue, 11 Jan 2022 15:09:45 +0100 Subject: [PATCH] true: clap 3 --- src/uu/true/Cargo.toml | 2 +- src/uu/true/src/true.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/true/Cargo.toml b/src/uu/true/Cargo.toml index 369bbb51f..deb9defb3 100644 --- a/src/uu/true/Cargo.toml +++ b/src/uu/true/Cargo.toml @@ -15,7 +15,7 @@ edition = "2018" path = "src/true.rs" [dependencies] -clap = { version = "2.33", features = ["wrap_help"] } +clap = { version = "3.0", features = ["wrap_help", "cargo"] } uucore = { version=">=0.0.10", package="uucore", path="../../uucore" } uucore_procs = { version=">=0.0.7", package="uucore_procs", path="../../uucore_procs" } diff --git a/src/uu/true/src/true.rs b/src/uu/true/src/true.rs index b5fbf7c9d..3c1eba32f 100644 --- a/src/uu/true/src/true.rs +++ b/src/uu/true/src/true.rs @@ -14,6 +14,6 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { Ok(()) } -pub fn uu_app() -> App<'static, 'static> { +pub fn uu_app<'a>() -> App<'a> { App::new(uucore::util_name()) }