aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorJake Howard <[email protected]>2021-03-31 21:18:35 +0100
committerJake Howard <[email protected]>2021-03-31 21:18:35 +0100
commit0af3956abd2ff9b550130716e41fc14088dac84c (patch)
tree4554f017b29df0b66b9f544cc75030d7eed5d1f3 /src/error.rs
parent15feff3e79b319dcbfd2d775d5521896a6068bc6 (diff)
downloadvaultwarden-0af3956abd2ff9b550130716e41fc14088dac84c.tar.gz
vaultwarden-0af3956abd2ff9b550130716e41fc14088dac84c.zip
Run `cargo fmt` on codebase
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index a0b28a4b..9c597a8b 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -33,10 +33,10 @@ macro_rules! make_error {
};
}
+use diesel::r2d2::PoolError as R2d2Err;
use diesel::result::Error as DieselErr;
use diesel::ConnectionError as DieselConErr;
use diesel_migrations::RunMigrationsError as DieselMigErr;
-use diesel::r2d2::PoolError as R2d2Err;
use handlebars::RenderError as HbErr;
use jsonwebtoken::errors::Error as JwtErr;
use regex::Error as RegexErr;
@@ -191,7 +191,7 @@ use rocket::response::{self, Responder, Response};
impl<'r> Responder<'r> for Error {
fn respond_to(self, _: &Request) -> response::Result<'r> {
match self.error {
- ErrorKind::EmptyError(_) => {} // Don't print the error in this situation
+ ErrorKind::EmptyError(_) => {} // Don't print the error in this situation
ErrorKind::SimpleError(_) => {} // Don't print the error in this situation
_ => error!(target: "error", "{:#?}", self),
};