diff options
author | 353fc443 <353fc443@pm.me> | 2021-07-13 13:47:06 +0000 |
---|---|---|
committer | 353fc443 <353fc443@pm.me> | 2021-07-13 13:47:06 +0000 |
commit | bd45fe26dcce50b6de00bc81a112249a8eaf5806 (patch) | |
tree | 4a78e6a61aceede4e934725dfae712dd37b364f2 | |
parent | 7d94121b95865cfef74c9480b5c8d0ba4af1cff9 (diff) |
true: added uresult
Related to #2464
-rw-r--r-- | src/uu/true/src/true.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/uu/true/src/true.rs b/src/uu/true/src/true.rs index ea53b0075..e6b7b9025 100644 --- a/src/uu/true/src/true.rs +++ b/src/uu/true/src/true.rs @@ -5,12 +5,20 @@ // * For the full copyright and license information, please view the LICENSE // * file that was distributed with this source code. +// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] + +#[macro_use] +extern crate uucore; + use clap::App; +use uucore::error::UResult; use uucore::executable; -pub fn uumain(args: impl uucore::Args) -> i32 { +#[uucore_procs::gen_uumain] +pub fn uumain(args: impl uucore::Args) -> UResult<()> { uu_app().get_matches_from(args); - 0 + Ok(()) } pub fn uu_app() -> App<'static, 'static> { |