aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/error.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-05-17 22:46:49 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-05-17 22:46:53 +0200
commitec6cd09e7bc72c481f5c062609247b18b3a34766 (patch)
tree71bce68a763e46d668406d84eb76a55c14bdf37e /askama_shared/src/error.rs
parente0523ecd8d587d0fa7351e071425d7b81498fcff (diff)
downloadaskama-ec6cd09e7bc72c481f5c062609247b18b3a34766.tar.gz
askama-ec6cd09e7bc72c481f5c062609247b18b3a34766.tar.bz2
askama-ec6cd09e7bc72c481f5c062609247b18b3a34766.zip
Remove now unused match arms
Diffstat (limited to '')
-rw-r--r--askama_shared/src/error.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/askama_shared/src/error.rs b/askama_shared/src/error.rs
index a6dc099..4394eea 100644
--- a/askama_shared/src/error.rs
+++ b/askama_shared/src/error.rs
@@ -45,7 +45,6 @@ impl std::error::Error for Error {
Error::Json(ref err) => err.source(),
#[cfg(feature = "serde_yaml")]
Error::Yaml(ref err) => err.source(),
- _ => None,
}
}
}
@@ -58,7 +57,6 @@ impl Display for Error {
Error::Json(ref err) => write!(formatter, "json conversion error: {}", err),
#[cfg(feature = "serde_yaml")]
Error::Yaml(ref err) => write!(formatter, "yaml conversion error: {}", err),
- _ => write!(formatter, "unknown error: __Nonexhaustive"),
}
}
}