mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
minor: dead code
This commit is contained in:
parent
51b955ec8a
commit
f1222e8085
1 changed files with 0 additions and 4 deletions
|
@ -277,8 +277,6 @@ pub mod buffer;
|
|||
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub enum ExpansionError {
|
||||
IOError(String),
|
||||
JsonError(String),
|
||||
Unknown(String),
|
||||
ExpansionError(String),
|
||||
}
|
||||
|
@ -286,8 +284,6 @@ pub enum ExpansionError {
|
|||
impl fmt::Display for ExpansionError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
ExpansionError::IOError(e) => write!(f, "I/O error: {}", e),
|
||||
ExpansionError::JsonError(e) => write!(f, "JSON decoding error: {}", e),
|
||||
ExpansionError::Unknown(e) => e.fmt(f),
|
||||
ExpansionError::ExpansionError(e) => write!(f, "proc macro returned error: {}", e),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue