Merge pull request #21 from ethanpailes/master

make QrError std::error::Error
This commit is contained in:
kennytm 2018-10-14 01:32:34 +08:00 committed by GitHub
commit 90c71c1b01

View file

@ -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<T> = Result<T, QrError>;