upgrade to edition 2021, clippy fixes, error fixed

This commit is contained in:
crapStone 2021-10-23 22:57:56 +02:00
parent 6def9f298c
commit b540284764
No known key found for this signature in database
GPG key ID: 0E1380C01B1D51B8
5 changed files with 18 additions and 15 deletions

View file

@ -5,6 +5,7 @@ pub fn build_cli() -> App<'static, 'static> {
.version(env!("CARGO_PKG_VERSION"))
.author("crapStone <crapstone01@gmail.com>")
.about("Utility to interact with backlight")
.global_setting(clap::AppSettings::ArgRequiredElseHelp)
.arg(
Arg::with_name("set")
.short("s")
@ -47,7 +48,10 @@ pub fn build_cli() -> App<'static, 'static> {
.long("full")
.help("Sets brightness to highest value"),
)
.group(ArgGroup::with_name("brightness_control").args(&["set", "inc", "dec", "get", "zer", "ful"]))
.group(
ArgGroup::with_name("brightness_control")
.args(&["set", "inc", "dec", "get", "zer", "ful"]),
)
.arg(
Arg::with_name("list")
.short("l")