7262: Don't show internal server error on rename r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot]
2021-01-13 12:09:26 +00:00
committed by GitHub
3 changed files with 10 additions and 14 deletions

View File

@@ -1,7 +1,6 @@
//! FIXME: write short doc here
use std::{
convert::TryInto,
error::Error,
fmt::{self, Display},
};
@@ -35,8 +34,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)+))}