From 9dd4099d9388b5f61e99f923dd6c523f76ad43ff Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 15 Jan 2019 18:45:01 +0300 Subject: remove Cancelable from static&const API --- crates/ra_ide_api/src/navigation_target.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide_api/src') 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 { NavigationTarget::from_named(file_id.original_file(db), &*node) } Def::Trait(f) => { - let (file_id, node) = f.source(db)?; + let (file_id, node) = f.source(db); NavigationTarget::from_named(file_id.original_file(db), &*node) } Def::Type(f) => { - let (file_id, node) = f.source(db)?; + let (file_id, node) = f.source(db); NavigationTarget::from_named(file_id.original_file(db), &*node) } Def::Static(f) => { - let (file_id, node) = f.source(db)?; + let (file_id, node) = f.source(db); NavigationTarget::from_named(file_id.original_file(db), &*node) } Def::Const(f) => { - let (file_id, node) = f.source(db)?; + let (file_id, node) = f.source(db); NavigationTarget::from_named(file_id.original_file(db), &*node) } Def::Module(m) => NavigationTarget::from_module(db, m)?, -- cgit v1.2.3