From 05ba45c667454028c3e65769d6f63fb0f27c1ca8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 15 Jan 2019 21:02:42 +0300 Subject: remove Canceled from API impl --- crates/ra_db/src/cancellation.rs | 2 -- crates/ra_db/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/ra_db/src') diff --git a/crates/ra_db/src/cancellation.rs b/crates/ra_db/src/cancellation.rs index 32a268553..439080075 100644 --- a/crates/ra_db/src/cancellation.rs +++ b/crates/ra_db/src/cancellation.rs @@ -21,8 +21,6 @@ pub struct Canceled { _private: (), } -pub type Cancelable = Result; - impl Canceled { pub(crate) fn new() -> Canceled { Canceled { _private: () } diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 8473fc050..89113e7a6 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -10,7 +10,7 @@ use std::panic; use ra_syntax::{TextUnit, TextRange, SourceFile, TreeArc}; pub use crate::{ - cancellation::{Canceled, Cancelable}, + cancellation::Canceled, syntax_ptr::LocalSyntaxPtr, input::{ FilesDatabase, FileId, CrateId, SourceRoot, SourceRootId, CrateGraph, Dependency, -- cgit v1.2.3