diff options
Diffstat (limited to 'crates/ra_assists/src/assists')
-rw-r--r-- | crates/ra_assists/src/assists/auto_import.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/auto_import.rs b/crates/ra_assists/src/assists/auto_import.rs index a91c170b9..419e93330 100644 --- a/crates/ra_assists/src/assists/auto_import.rs +++ b/crates/ra_assists/src/assists/auto_import.rs | |||
@@ -511,7 +511,7 @@ pub fn collect_hir_path_segments(path: &hir::Path) -> Option<Vec<SmolStr>> { | |||
511 | hir::PathKind::Plain => {} | 511 | hir::PathKind::Plain => {} |
512 | hir::PathKind::Self_ => ps.push("self".into()), | 512 | hir::PathKind::Self_ => ps.push("self".into()), |
513 | hir::PathKind::Super => ps.push("super".into()), | 513 | hir::PathKind::Super => ps.push("super".into()), |
514 | hir::PathKind::Type(_) => return None, | 514 | hir::PathKind::Type(_) | hir::PathKind::DollarCrate(_) => return None, |
515 | } | 515 | } |
516 | for s in path.segments.iter() { | 516 | for s in path.segments.iter() { |
517 | ps.push(s.name.to_string().into()); | 517 | ps.push(s.name.to_string().into()); |