diff options
author | Jacob Wahlgren <jacob.wahlgren@gmail.com> | 2016-11-06 01:17:41 +0100 |
---|---|---|
committer | Jacob Wahlgren <jacob.wahlgren@gmail.com> | 2016-11-06 01:17:41 +0100 |
commit | f63c168563743ddc402335893a9cacfcb780ccc9 (patch) | |
tree | b86d207ab64f58c48caeb96728bd49ea4e45e661 /ignore/src/dir.rs | |
parent | a05671c8d72659c1189eefea15f798c20407282a (diff) |
Rename IgnoreOptions::has_ignores
The name has_ignores is not descriptive in my opinion. I think
has_any_ignore_options more clearly states this method's purpose. I also
considered simply IgnoreOptions::any though I went with the more verbose
option.
Diffstat (limited to 'ignore/src/dir.rs')
-rw-r--r-- | ignore/src/dir.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs index ebc2c699..370fd92d 100644 --- a/ignore/src/dir.rs +++ b/ignore/src/dir.rs @@ -75,7 +75,7 @@ struct IgnoreOptions { impl IgnoreOptions { /// Returns true if at least one type of ignore rules should be matched. - fn should_ignores(&self) -> bool { + fn has_any_ignore_options(&self) -> bool { self.ignore || self.git_global || self.git_ignore || self.git_exclude } } @@ -280,7 +280,7 @@ impl Ignore { } } let mut whitelisted = Match::None; - if self.0.opts.should_ignores() { + if self.0.opts.has_any_ignore_options() { let mat = self.matched_ignore(path, is_dir); if mat.is_ignore() { return mat; |