Update src/error.rs

Co-authored-by: Sculas <contact@sculas.xyz>
This commit is contained in:
Chris Tsang 2022-09-03 20:45:17 +08:00 committed by GitHub
parent 4993c6ab2d
commit 36f09c524e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ pub enum DbErr {
source: Box<dyn std::error::Error + Send + Sync>, source: Box<dyn std::error::Error + Send + Sync>,
}, },
/// Type error: the specified type cannot be converted from u64. This is not a runtime error. /// Type error: the specified type cannot be converted from u64. This is not a runtime error.
#[error("Type `{0}` cannot be converted from u64")] #[error("Type '{0}' cannot be converted from u64")]
CannotConvertFromU64(&'static str), CannotConvertFromU64(&'static str),
/// After an insert statement it was impossible to retrieve the last_insert_id /// After an insert statement it was impossible to retrieve the last_insert_id
#[error("Failed to unpack last_insert_id")] #[error("Failed to unpack last_insert_id")]