aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-13 12:09:26 +0000
committerGitHub <[email protected]>2021-01-13 12:09:26 +0000
commitf84f5cb0ea3c1b10fbe96038d0201975913425cc (patch)
treeefabf4ed9338b7081ff2ceb4546c39c789275492 /crates/ide/src/references
parente41b36302784fc2661b4be2e13cb9a54cfa08ac9 (diff)
parentf0e802f4903cee864b193beb2ddcd50d6d9f60c7 (diff)
Merge #7262
7262: Don't show internal server error on rename r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/references')
-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 5207388b5..c3ae568c2 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
@@ -35,8 +34,6 @@ impl fmt::Display for RenameError {
35 } 34 }
36} 35}
37 36
38impl Error for RenameError {}
39
40macro_rules! format_err { 37macro_rules! format_err {
41 ($fmt:expr) => {RenameError(format!($fmt))}; 38 ($fmt:expr) => {RenameError(format!($fmt))};
42 ($fmt:expr, $($arg:tt)+) => {RenameError(format!($fmt, $($arg)+))} 39 ($fmt:expr, $($arg:tt)+) => {RenameError(format!($fmt, $($arg)+))}