aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-13 11:09:51 +0000
committerAleksey Kladov <[email protected]>2021-01-13 12:07:30 +0000
commitf0e802f4903cee864b193beb2ddcd50d6d9f60c7 (patch)
tree9830f7b3a9607d7b385fb3311ef078ade5a42768 /crates/ide/src
parent52fa926f005890f07dffc789c84c2be57a6bdccc (diff)
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.
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/references/rename.rs3
1 files changed, 0 insertions, 3 deletions
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 @@
1//! FIXME: write short doc here 1//! FIXME: write short doc here
2use std::{ 2use std::{
3 convert::TryInto, 3 convert::TryInto,
4 error::Error,
5 fmt::{self, Display}, 4 fmt::{self, Display},
6}; 5};
7 6
@@ -34,8 +33,6 @@ impl fmt::Display for RenameError {
34 } 33 }
35} 34}
36 35
37impl Error for RenameError {}
38
39macro_rules! format_err { 36macro_rules! format_err {
40 ($fmt:expr) => {RenameError(format!($fmt))}; 37 ($fmt:expr) => {RenameError(format!($fmt))};
41 ($fmt:expr, $($arg:tt)+) => {RenameError(format!($fmt, $($arg)+))} 38 ($fmt:expr, $($arg:tt)+) => {RenameError(format!($fmt, $($arg)+))}