diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/navigation_target.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs index 306dbfd92..965dfc0ca 100644 --- a/crates/ra_ide_api/src/navigation_target.rs +++ b/crates/ra_ide_api/src/navigation_target.rs | |||
@@ -128,19 +128,19 @@ impl NavigationTarget { | |||
128 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 128 | NavigationTarget::from_named(file_id.original_file(db), &*node) |
129 | } | 129 | } |
130 | Def::Trait(f) => { | 130 | Def::Trait(f) => { |
131 | let (file_id, node) = f.source(db)?; | 131 | let (file_id, node) = f.source(db); |
132 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 132 | NavigationTarget::from_named(file_id.original_file(db), &*node) |
133 | } | 133 | } |
134 | Def::Type(f) => { | 134 | Def::Type(f) => { |
135 | let (file_id, node) = f.source(db)?; | 135 | let (file_id, node) = f.source(db); |
136 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 136 | NavigationTarget::from_named(file_id.original_file(db), &*node) |
137 | } | 137 | } |
138 | Def::Static(f) => { | 138 | Def::Static(f) => { |
139 | let (file_id, node) = f.source(db)?; | 139 | let (file_id, node) = f.source(db); |
140 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 140 | NavigationTarget::from_named(file_id.original_file(db), &*node) |
141 | } | 141 | } |
142 | Def::Const(f) => { | 142 | Def::Const(f) => { |
143 | let (file_id, node) = f.source(db)?; | 143 | let (file_id, node) = f.source(db); |
144 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 144 | NavigationTarget::from_named(file_id.original_file(db), &*node) |
145 | } | 145 | } |
146 | Def::Module(m) => NavigationTarget::from_module(db, m)?, | 146 | Def::Module(m) => NavigationTarget::from_module(db, m)?, |