aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
authoruHOOCCOOHu <[email protected]>2019-09-15 12:48:24 +0100
committeruHOOCCOOHu <[email protected]>2019-09-15 12:48:24 +0100
commitde9670fe456d89f97e8044d4e0919d2c16d1087f (patch)
tree495c5d987e0f2cd754c3e4e6b20adafcf1f23403 /crates/ra_assists/src
parent4926bed42680d329f906be93450bec6b2ba0e99b (diff)
Move store TypeRef of type based path in PathKind
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/auto_import.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/auto_import.rs b/crates/ra_assists/src/auto_import.rs
index 5ecda1ff5..5aae98546 100644
--- a/crates/ra_assists/src/auto_import.rs
+++ b/crates/ra_assists/src/auto_import.rs
@@ -512,7 +512,7 @@ pub fn collect_hir_path_segments(path: &hir::Path) -> Option<Vec<SmolStr>> {
512 hir::PathKind::Plain => {} 512 hir::PathKind::Plain => {}
513 hir::PathKind::Self_ => ps.push("self".into()), 513 hir::PathKind::Self_ => ps.push("self".into()),
514 hir::PathKind::Super => ps.push("super".into()), 514 hir::PathKind::Super => ps.push("super".into()),
515 hir::PathKind::Type => return None, 515 hir::PathKind::Type(_) => return None,
516 } 516 }
517 for s in path.segments.iter() { 517 for s in path.segments.iter() {
518 ps.push(s.name.to_string().into()); 518 ps.push(s.name.to_string().into());