clean code with clippy

This commit is contained in:
2023-05-30 14:36:23 +02:00
parent 7fcae95b02
commit 9c30cda326
5 changed files with 8 additions and 17 deletions

View File

@ -66,7 +66,7 @@ WHERE trip.id=?
cox: &CoxUser,
planned_event: &PlannedEvent,
) -> Result<(), CoxHelpError> {
if planned_event.is_rower_registered(db, &cox).await {
if planned_event.is_rower_registered(db, cox).await {
return Err(CoxHelpError::AlreadyRegisteredAsRower);
}