mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-27 06:14:29 +00:00
Fixed some clippy lints and changed update_uuid_revision to only use one db query
This commit is contained in:
parent
ef63342e20
commit
8b4a6f2a64
8 changed files with 32 additions and 27 deletions
|
@ -6,7 +6,7 @@ use std::error::Error as StdError;
|
|||
macro_rules! make_error {
|
||||
( $( $name:ident ( $ty:ty ): $src_fn:expr, $usr_msg_fun:expr ),+ $(,)? ) => {
|
||||
#[derive(Display)]
|
||||
enum ErrorKind { $($name( $ty )),+ }
|
||||
pub enum ErrorKind { $($name( $ty )),+ }
|
||||
pub struct Error { message: String, error: ErrorKind }
|
||||
|
||||
$(impl From<$ty> for Error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue