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

@ -394,11 +394,11 @@ enum SortByKind {
impl SortBy {
fn asc(kind: SortByKind) -> SortBy {
SortBy { reverse: false, kind: kind }
SortBy { reverse: false, kind }
}
fn desc(kind: SortByKind) -> SortBy {
SortBy { reverse: true, kind: kind }
SortBy { reverse: true, kind }
}
fn none() -> SortBy {
@ -559,10 +559,10 @@ impl ArgMatches {
};
Ok(Args(Arc::new(ArgsImp {
matches: self,
patterns: patterns,
matcher: matcher,
paths: paths,
using_default_path: using_default_path,
patterns,
matcher,
paths,
using_default_path,
})))
}
}