summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 51ac8fd..4217939 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -44,11 +44,6 @@ impl<'a> From<PoisonError<MutexGuard<'a, tokio_postgres::Client>>> for Error {
Error::Misc(format!("failed to lock the client mutex: {:?}", error))
}
}
-impl<'a> From<std::option::NoneError> for Error {
- fn from(error: std::option::NoneError) -> Self {
- Error::Misc(format!("tried to unwrap none at: {:?}", error))
- }
-}
impl<'a> Responder<'a, 'a> for Error {
fn respond_to(self, _: &Request) -> response::Result<'a> {
let response = match self {