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:
@ -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![],
|
||||
},
|
||||
|
Reference in New Issue
Block a user