From 959137cf615cd26f93024d26a18e38e522388cf1 Mon Sep 17 00:00:00 2001 From: Ethan Pailes Date: Sat, 13 Oct 2018 13:38:39 -0400 Subject: [PATCH] make QrError std::error::Error --- src/types.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/types.rs b/src/types.rs index 1e069e8..b826515 100644 --- a/src/types.rs +++ b/src/types.rs @@ -41,6 +41,12 @@ impl Display for QrError { } } +impl ::std::error::Error for QrError { + fn description(&self) -> &'static str { + "QrError" + } +} + /// `QrResult` is a convenient alias for a QR code generation result. pub type QrResult = Result;