clean code with clippy

This commit is contained in:
2023-09-06 14:39:36 +02:00
parent ba3a552def
commit 8b0264d181
7 changed files with 16 additions and 18 deletions

View File

@ -120,9 +120,9 @@ ORDER BY day;",
pub(crate) async fn user_allowed_to_change(&self, db: &SqlitePool, user: &User) -> bool {
if self.belongs_to_event(db).await {
return user.is_admin;
user.is_admin
} else {
return self.user_is_cox(db, user).await != CoxAtTrip::No;
self.user_is_cox(db, user).await != CoxAtTrip::No
}
}