1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-14 22:15:13 +02:00

style: fix rust-analyzer lints in core

This commit is contained in:
Andrew Gallant
2020-03-15 09:04:39 -04:00
parent 7340d8dbbe
commit 1856cda77b
5 changed files with 15 additions and 20 deletions

View File

@ -297,14 +297,11 @@ impl RGArg {
fn positional(name: &'static str, value_name: &'static str) -> RGArg {
RGArg {
claparg: Arg::with_name(name).value_name(value_name),
name: name,
name,
doc_short: "",
doc_long: "",
hidden: false,
kind: RGArgKind::Positional {
value_name: value_name,
multiple: false,
},
kind: RGArgKind::Positional { value_name, multiple: false },
}
}
@ -319,7 +316,7 @@ impl RGArg {
fn switch(long_name: &'static str) -> RGArg {
let claparg = Arg::with_name(long_name).long(long_name);
RGArg {
claparg: claparg,
claparg,
name: long_name,
doc_short: "",
doc_long: "",
@ -349,7 +346,7 @@ impl RGArg {
.takes_value(true)
.number_of_values(1);
RGArg {
claparg: claparg,
claparg,
name: long_name,
doc_short: "",
doc_long: "",
@ -357,7 +354,7 @@ impl RGArg {
kind: RGArgKind::Flag {
long: long_name,
short: None,
value_name: value_name,
value_name,
multiple: false,
possible_values: vec![],
},