From ec6cd09e7bc72c481f5c062609247b18b3a34766 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 17 May 2020 22:46:49 +0200 Subject: Remove now unused match arms --- askama_shared/src/error.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'askama_shared') 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"), } } } -- cgit