Run cargo fmt

This commit is contained in:
Paul Makles committed 2021-01-18 22:02:46 +00:00
1 parent 34ac8f54ef
commit 901b29f49e
5 files changed
+24 -23

No files matched your search

+3 -5
View File
@@ -37,10 +37,8 @@ pub enum Error {
#[snafu(display("Cannot edit someone else's message."))]
CannotEditMessage,
#[snafu(display("Group size is too large."))]
GroupTooLarge {
max: usize
},
GroupTooLarge { max: usize },
// ? General errors.
#[snafu(display("Failed to validate fields."))]
FailedValidation { error: ValidationErrors },
@@ -77,7 +75,7 @@ impl<'r> Responder<'r, 'static> for Error {
Error::CannotEditMessage => Status::Forbidden,
Error::GroupTooLarge { .. } => Status::Forbidden,
Error::FailedValidation { .. } => Status::UnprocessableEntity,
Error::DatabaseError { .. } => Status::InternalServerError,
Error::InternalError => Status::InternalServerError,