From d971c1504c658f666e6e733ac03f932c1972361a Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 21 Aug 2024 16:16:07 +0200 Subject: [PATCH] clippy --- src/model/event.rs | 6 +----- src/tera/admin/user.rs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/model/event.rs b/src/model/event.rs index 3581810..3a34ad4 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -9,11 +9,7 @@ use serde::Serialize; use sqlx::{FromRow, Row, SqlitePool}; use super::{ - notification::Notification, - role::Role, - trip, - tripdetails::{self, TripDetails}, - triptype::TripType, + notification::Notification, role::Role, tripdetails::TripDetails, triptype::TripType, user::User, }; diff --git a/src/tera/admin/user.rs b/src/tera/admin/user.rs index c9382e1..29f88e7 100644 --- a/src/tera/admin/user.rs +++ b/src/tera/admin/user.rs @@ -437,8 +437,8 @@ async fn schnupper_to_scheckbuch( let scheckbuch = Role::find_by_name(db, "scheckbuch").await.unwrap(); user.add_role(db, &scheckbuch).await; - if let Some(noEinschreibgebuehr) = Role::find_by_name(db, "no-einschreibgebuehr").await { - user.add_role(db, &noEinschreibgebuehr).await; + if let Some(no_einschreibgebuehr) = Role::find_by_name(db, "no-einschreibgebuehr").await { + user.add_role(db, &no_einschreibgebuehr).await; } user.send_welcome_email(db, &config.smtp_pw).await.unwrap();