impl std::error::Error for DbErr

This commit is contained in:
Chris Tsang 2021-08-08 00:01:54 +08:00
parent 1ccdec16e1
commit 0e3439ee84

View File

@ -5,6 +5,8 @@ pub enum DbErr {
Query(String),
}
impl std::error::Error for DbErr {}
impl std::fmt::Display for DbErr {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {