mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
remove Canceled from API impl
This commit is contained in:
parent
02c3d2f78e
commit
05ba45c667
8 changed files with 61 additions and 76 deletions
|
@ -21,8 +21,6 @@ pub struct Canceled {
|
|||
_private: (),
|
||||
}
|
||||
|
||||
pub type Cancelable<T> = Result<T, Canceled>;
|
||||
|
||||
impl Canceled {
|
||||
pub(crate) fn new() -> Canceled {
|
||||
Canceled { _private: () }
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue