remove FmtError variant of ErrorKind
This commit is contained in:
parent
3805eaab2b
commit
5480937b4d
@ -38,7 +38,6 @@ enum SassErrorKind {
|
||||
loc: SpanLoc,
|
||||
},
|
||||
IoError(io::Error),
|
||||
FmtError(fmt::Error),
|
||||
FromUtf8Error(String),
|
||||
}
|
||||
|
||||
@ -84,14 +83,6 @@ impl From<io::Error> for SassError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<std::fmt::Error> for SassError {
|
||||
fn from(error: std::fmt::Error) -> Self {
|
||||
SassError {
|
||||
kind: SassErrorKind::FmtError(error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<FromUtf8Error> for SassError {
|
||||
#[inline]
|
||||
fn from(error: FromUtf8Error) -> Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user