[issues] [cli] cargo fmt
This commit is contained in:
parent
324c6c8793
commit
b74491a476
@ -40,9 +40,9 @@ impl From<TryGetError> for DbErr {
|
|||||||
fn from(e: TryGetError) -> DbErr {
|
fn from(e: TryGetError) -> DbErr {
|
||||||
match e {
|
match e {
|
||||||
TryGetError::DbErr(e) => e,
|
TryGetError::DbErr(e) => e,
|
||||||
TryGetError::Null(s) => DbErr::Query(
|
TryGetError::Null(s) => {
|
||||||
format!("error occurred while decoding {}: Null", s)
|
DbErr::Query(format!("error occurred while decoding {}: Null", s))
|
||||||
),
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -822,7 +822,7 @@ try_from_u64_err!(uuid::Uuid);
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::{TryGetError};
|
use super::TryGetError;
|
||||||
use crate::error::DbErr;
|
use crate::error::DbErr;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user