diff options
Diffstat (limited to 'crates/rust-analyzer/src/lsp_utils.rs')
-rw-r--r-- | crates/rust-analyzer/src/lsp_utils.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/lsp_utils.rs b/crates/rust-analyzer/src/lsp_utils.rs index 73c4193e8..8000b5490 100644 --- a/crates/rust-analyzer/src/lsp_utils.rs +++ b/crates/rust-analyzer/src/lsp_utils.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! Utilities for LSP-related boilerplate code. | 1 | //! Utilities for LSP-related boilerplate code. |
2 | use std::{error::Error, ops::Range, sync::Arc}; | 2 | use std::{error::Error, ops::Range, sync::Arc}; |
3 | 3 | ||
4 | use ide_db::base_db::Canceled; | 4 | use ide_db::base_db::Cancelled; |
5 | use lsp_server::Notification; | 5 | use lsp_server::Notification; |
6 | 6 | ||
7 | use crate::{ | 7 | use crate::{ |
@@ -10,8 +10,8 @@ use crate::{ | |||
10 | line_index::{LineEndings, LineIndex, OffsetEncoding}, | 10 | line_index::{LineEndings, LineIndex, OffsetEncoding}, |
11 | }; | 11 | }; |
12 | 12 | ||
13 | pub(crate) fn is_canceled(e: &(dyn Error + 'static)) -> bool { | 13 | pub(crate) fn is_cancelled(e: &(dyn Error + 'static)) -> bool { |
14 | e.downcast_ref::<Canceled>().is_some() | 14 | e.downcast_ref::<Cancelled>().is_some() |
15 | } | 15 | } |
16 | 16 | ||
17 | pub(crate) fn notification_is<N: lsp_types::notification::Notification>( | 17 | pub(crate) fn notification_is<N: lsp_types::notification::Notification>( |