From f0e802f4903cee864b193beb2ddcd50d6d9f60c7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 13 Jan 2021 14:09:51 +0300 Subject: Don't show internal server error on rename Doesn't quite work due to https://github.com/microsoft/vscode-languageserver-node/issues/730 Note that this intentionally removes `impl std::Error for RenameError` -- we nether want to blindly bubble the rename error. --- crates/ide/src/references/rename.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs index 3edc43e08..3db08e84c 100644 --- a/crates/ide/src/references/rename.rs +++ b/crates/ide/src/references/rename.rs @@ -1,7 +1,6 @@ //! FIXME: write short doc here use std::{ convert::TryInto, - error::Error, fmt::{self, Display}, }; @@ -34,8 +33,6 @@ impl fmt::Display for RenameError { } } -impl Error for RenameError {} - macro_rules! format_err { ($fmt:expr) => {RenameError(format!($fmt))}; ($fmt:expr, $($arg:tt)+) => {RenameError(format!($fmt, $($arg)+))} -- cgit v1.2.3