From: Aleksey Kladov Date: Sat, 10 Mar 2018 13:23:30 +0000 (+0300) Subject: Rename CommonArgs -> AppExt X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~47^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8b80440350485a82b65f8d8a2b4075e54b85b6aa;p=cargo.git Rename CommonArgs -> AppExt --- diff --git a/src/bin/command_prelude.rs b/src/bin/command_prelude.rs index 5d10c76be..cc48bd373 100644 --- a/src/bin/command_prelude.rs +++ b/src/bin/command_prelude.rs @@ -11,7 +11,7 @@ pub use clap::Arg; pub type App = clap::App<'static, 'static>; -pub trait CommonArgs: Sized { +pub trait AppExt: Sized { fn _arg(self, arg: Arg<'static, 'static>) -> Self; fn arg_package(self, package: &'static str, all: &'static str, exclude: &'static str) -> Self { @@ -150,7 +150,7 @@ a global configuration.") } } -impl CommonArgs for App { +impl AppExt for App { fn _arg(self, arg: Arg<'static, 'static>) -> Self { self.arg(arg) }