mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
internal: document that ascription is preferred to a turbo fish
This commit is contained in:
parent
145b51f9da
commit
629c68e80d
3 changed files with 22 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue