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

@ -50,10 +50,8 @@ impl SubjectBuilder {
/// If a subject could not be created or should otherwise not be searched,
/// then this returns `None` after emitting any relevant log messages.
pub fn build(&self, dent: DirEntry) -> Option<Subject> {
let subj = Subject {
dent: dent,
strip_dot_prefix: self.config.strip_dot_prefix,
};
let subj =
Subject { dent, strip_dot_prefix: self.config.strip_dot_prefix };
if let Some(ignore_err) = subj.dent.error() {
ignore_message!("{}", ignore_err);
}