diff options
author | Aleksey Kladov <[email protected]> | 2019-01-15 15:45:01 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-15 15:45:01 +0000 |
commit | 9dd4099d9388b5f61e99f923dd6c523f76ad43ff (patch) | |
tree | c4f4a4b83eb7d5ac094b31d46979eaa513e81518 /crates/ra_ide_api | |
parent | 9446be29992fe14ec529874622311c3ae7a49b0e (diff) |
remove Cancelable from static&const API
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)?, |