diff options
author | Aleksey Kladov <[email protected]> | 2019-01-15 16:01:59 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-15 16:01:59 +0000 |
commit | 040a622c5277511b4835fa35b72c314bf080b8cc (patch) | |
tree | 30117173485c6e660b9db7d0fc34c34f724e2b31 /crates/ra_hir/src/query_definitions.rs | |
parent | 7c977a7dcd2bac3b6148f2428bcb586c6354d775 (diff) |
remove Cancelable from funciton body
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index 7ff942f6a..31086d1e1 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -19,7 +19,7 @@ use crate::{ | |||
19 | }; | 19 | }; |
20 | 20 | ||
21 | pub(super) fn fn_scopes(db: &impl HirDatabase, def_id: DefId) -> Cancelable<Arc<FnScopes>> { | 21 | pub(super) fn fn_scopes(db: &impl HirDatabase, def_id: DefId) -> Cancelable<Arc<FnScopes>> { |
22 | let body = db.body_hir(def_id)?; | 22 | let body = db.body_hir(def_id); |
23 | let res = FnScopes::new(body); | 23 | let res = FnScopes::new(body); |
24 | Ok(Arc::new(res)) | 24 | Ok(Arc::new(res)) |
25 | } | 25 | } |