impl std::error::Error for DbErr
This commit is contained in:
parent
1ccdec16e1
commit
0e3439ee84
@ -5,6 +5,8 @@ pub enum DbErr {
|
|||||||
Query(String),
|
Query(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for DbErr {}
|
||||||
|
|
||||||
impl std::fmt::Display for DbErr {
|
impl std::fmt::Display for DbErr {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user