internal: document that ascription is preferred to a turbo fish

This commit is contained in:
Aleksey Kladov 2021-08-11 14:16:15 +03:00
parent 145b51f9da
commit 629c68e80d
3 changed files with 22 additions and 2 deletions

View file

@ -161,7 +161,7 @@ impl Directories {
/// - This path is longer than any element in `self.exclude` that is a prefix
/// of `path`. In case of equality, exclusion wins.
fn includes_path(&self, path: &AbsPath) -> bool {
let mut include = None::<&AbsPathBuf>;
let mut include: Option<&AbsPathBuf> = None;
for incl in &self.include {
if path.starts_with(incl) {
include = Some(match include {