mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
Run cargo fmt
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user