remove superfluous impl Display
This commit is contained in:
parent
003bd87caf
commit
c7ed27bb45
@ -1,5 +1,3 @@
|
|||||||
use std::fmt::{self, Display};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
pub enum AtRuleKind {
|
pub enum AtRuleKind {
|
||||||
// SASS specific @rules
|
// SASS specific @rules
|
||||||
@ -84,31 +82,3 @@ impl From<&str> for AtRuleKind {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for AtRuleKind {
|
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
||||||
match self {
|
|
||||||
Self::Use => write!(f, "@use"),
|
|
||||||
Self::Forward => write!(f, "@forward"),
|
|
||||||
Self::Import => write!(f, "@import"),
|
|
||||||
Self::Mixin => write!(f, "@mixin"),
|
|
||||||
Self::Include => write!(f, "@include"),
|
|
||||||
Self::Function => write!(f, "@function"),
|
|
||||||
Self::Return => write!(f, "@return"),
|
|
||||||
Self::Extend => write!(f, "@extend"),
|
|
||||||
Self::AtRoot => write!(f, "@at-root"),
|
|
||||||
Self::Error => write!(f, "@error"),
|
|
||||||
Self::Warn => write!(f, "@warn"),
|
|
||||||
Self::Debug => write!(f, "@debug"),
|
|
||||||
Self::If => write!(f, "@if"),
|
|
||||||
Self::Each => write!(f, "@each"),
|
|
||||||
Self::For => write!(f, "@for"),
|
|
||||||
Self::While => write!(f, "@while"),
|
|
||||||
Self::Charset => write!(f, "@charset"),
|
|
||||||
Self::Supports => write!(f, "@supports"),
|
|
||||||
Self::Keyframes => write!(f, "@keyframes"),
|
|
||||||
Self::Content => write!(f, "@content"),
|
|
||||||
Self::Unknown(s) => write!(f, "@{}", s),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user