Merge pull request #21 from ethanpailes/master
make QrError std::error::Error
This commit is contained in:
commit
90c71c1b01
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue