Remove unused error variant

This commit is contained in:
Valentin Brandl 2019-04-20 15:02:38 +02:00
parent d890288640
commit 23b841913b
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -6,7 +6,6 @@ pub(crate) enum Error {
Git(git2::Error),
Internal,
Io(std::io::Error),
ParseColor,
Serial(serde_json::Error),
}
@ -17,7 +16,6 @@ impl std::fmt::Display for Error {
Error::Git(e) => write!(fmt, "Git({})", e),
Error::Internal => write!(fmt, "Internal Error"),
Error::Io(e) => write!(fmt, "Io({})", e),
Error::ParseColor => write!(fmt, "Parse error"),
Error::Serial(e) => write!(fmt, "Serial({})", e),
}
}