diff options
author | vsrs <[email protected]> | 2020-06-11 12:41:42 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-06-18 08:15:43 +0100 |
commit | 7ec0064409f90334f6b0dd61e572a65702702985 (patch) | |
tree | 4a97c35ea8f6defd4718fdfdc801f3646105de7e /crates/ra_ide/src/display | |
parent | 7e986d1504e6fd6dc1fc9b64f5fb9eac2bef952a (diff) |
Remove AdtOrTrait
Diffstat (limited to 'crates/ra_ide/src/display')
-rw-r--r-- | crates/ra_ide/src/display/navigation_target.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ra_ide/src/display/navigation_target.rs b/crates/ra_ide/src/display/navigation_target.rs index 325b247bb..c7bb1e69f 100644 --- a/crates/ra_ide/src/display/navigation_target.rs +++ b/crates/ra_ide/src/display/navigation_target.rs | |||
@@ -321,15 +321,6 @@ impl ToNav for hir::Adt { | |||
321 | } | 321 | } |
322 | } | 322 | } |
323 | 323 | ||
324 | impl ToNav for hir::AdtOrTrait { | ||
325 | fn to_nav(&self, db: &RootDatabase) -> NavigationTarget { | ||
326 | match self { | ||
327 | hir::AdtOrTrait::Adt(adt) => adt.to_nav(db), | ||
328 | hir::AdtOrTrait::Trait(trait_) => trait_.to_nav(db), | ||
329 | } | ||
330 | } | ||
331 | } | ||
332 | |||
333 | impl ToNav for hir::AssocItem { | 324 | impl ToNav for hir::AssocItem { |
334 | fn to_nav(&self, db: &RootDatabase) -> NavigationTarget { | 325 | fn to_nav(&self, db: &RootDatabase) -> NavigationTarget { |
335 | match self { | 326 | match self { |