Fix warning

This commit is contained in:
Steven Fackler
2018-12-30 20:12:17 -08:00
parent a675b0b50a
commit 272f1a88b9

View File

@@ -294,14 +294,17 @@ impl fmt::Display for UnknownOption {
impl error::Error for UnknownOption {}
#[derive(Debug)]
#[cfg(feature = "runtime")]
struct InvalidValue(&'static str);
#[cfg(feature = "runtime")]
impl fmt::Display for InvalidValue {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(fmt, "invalid value for option `{}`", self.0)
}
}
#[cfg(feature = "runtime")]
impl error::Error for InvalidValue {}
struct Parser<'a> {