diff options
author | Aleksey Kladov <[email protected]> | 2019-01-15 15:43:25 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-15 15:43:25 +0000 |
commit | 9446be29992fe14ec529874622311c3ae7a49b0e (patch) | |
tree | 28ed14b3de7239994ba19b304e72c86f8d37de23 /crates/ra_hir/src/code_model_impl | |
parent | 05149d353299b54476410daeda6551e1261128ef (diff) |
remove Cancelable from adt API
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 8668d6c8a..f27523753 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -154,7 +154,7 @@ impl Module { | |||
154 | if segments.len() == idx + 1 { | 154 | if segments.len() == idx + 1 { |
155 | // enum variant | 155 | // enum variant |
156 | let matching_variant = | 156 | let matching_variant = |
157 | e.variants(db)?.into_iter().find(|(n, _variant)| n == name); | 157 | e.variants(db).into_iter().find(|(n, _variant)| n == name); |
158 | 158 | ||
159 | if let Some((_n, variant)) = matching_variant { | 159 | if let Some((_n, variant)) = matching_variant { |
160 | return Ok(PerNs::both(variant.def_id(), e.def_id())); | 160 | return Ok(PerNs::both(variant.def_id(), e.def_id())); |