diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 16:01:13 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 16:01:13 -0800 |
commit | a2cbc5b4d88f3385ebed5b70e8cce19e00e81a8f (patch) | |
tree | 024d2f3a7a8a389f1fcf7ba8bbafd3dc192a2890 /rust/src/api_wrappers.rs | |
parent | 413968810ce470aded05e0d3519601ae6922c284 (diff) | |
download | fatcat-a2cbc5b4d88f3385ebed5b70e8cce19e00e81a8f.tar.gz fatcat-a2cbc5b4d88f3385ebed5b70e8cce19e00e81a8f.zip |
rust fmt
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r-- | rust/src/api_wrappers.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs index 22b5f857..f03d4041 100644 --- a/rust/src/api_wrappers.rs +++ b/rust/src/api_wrappers.rs @@ -1256,7 +1256,8 @@ impl Api for Server { Ok(()) }) { Ok(()) => AuthCheckResponse::Success(Success { - message: "auth check successful!".to_string() }), + message: "auth check successful!".to_string(), + }), Err(Error(ErrorKind::Diesel(e), _)) => AuthCheckResponse::BadRequest(ErrorResponse { message: e.to_string(), }), @@ -1269,23 +1270,23 @@ impl Api for Server { AuthCheckResponse::Forbidden(ErrorResponse { message: e.to_string(), }) - }, + } Err(Error(ErrorKind::InsufficientPrivileges(e), _)) => { AuthCheckResponse::Forbidden(ErrorResponse { message: e.to_string(), }) - }, + } Err(Error(ErrorKind::OtherBadRequest(e), _)) => { AuthCheckResponse::BadRequest(ErrorResponse { message: e.to_string(), }) - }, + } Err(e) => { error!("{}", e); AuthCheckResponse::GenericError(ErrorResponse { message: e.to_string(), }) - }, + } }; Box::new(futures::done(Ok(ret))) } |