Fix clippy::single_char_pattern

This commit is contained in:
Alan Du 2019-06-04 02:38:13 -04:00
parent 682bf04bf4
commit ed3d93b875
4 changed files with 6 additions and 9 deletions

View file

@ -70,7 +70,7 @@ impl ProjectRoot {
})
};
let hidden = dir_path.components().any(|c| c.as_str().starts_with("."));
let hidden = dir_path.components().any(|c| c.as_str().starts_with('.'));
!is_ignored && !hidden
}