mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 04:45:05 +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)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
pub enum ExpansionError {
|
pub enum ExpansionError {
|
||||||
IOError(String),
|
|
||||||
JsonError(String),
|
|
||||||
Unknown(String),
|
Unknown(String),
|
||||||
ExpansionError(String),
|
ExpansionError(String),
|
||||||
}
|
}
|
||||||
|
@ -286,8 +284,6 @@ pub enum ExpansionError {
|
||||||
impl fmt::Display for ExpansionError {
|
impl fmt::Display for ExpansionError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match self {
|
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::Unknown(e) => e.fmt(f),
|
||||||
ExpansionError::ExpansionError(e) => write!(f, "proc macro returned error: {}", e),
|
ExpansionError::ExpansionError(e) => write!(f, "proc macro returned error: {}", e),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue