From 35900f3059b3ad04e47d3a13a8dc601ea7b959b7 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 20 Mar 2024 21:16:55 +0100 Subject: [PATCH] fix ci --- src/model/user.rs | 10 +++------- src/tera/admin/user.rs | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/model/user.rs b/src/model/user.rs index e4f7eb3..5057f23 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -1,16 +1,11 @@ -use std::{ - fs::File, - io::Read, - ops::{Deref, DerefMut}, -}; +use std::ops::{Deref, DerefMut}; use argon2::{password_hash::SaltString, Argon2, PasswordHasher}; use chrono::{Datelike, Local, NaiveDate}; use log::info; use rocket::{ async_trait, - data::ToByteUnit, - http::{ext::IntoCollection, Cookie, Status}, + http::{Cookie, Status}, request::{self, FromRequest, Outcome}, time::{Duration, OffsetDateTime}, tokio::io::AsyncReadExt, @@ -1069,6 +1064,7 @@ mod test { phone: None, address: None, family_id: None, + membership_pdf: None, }, ) .await; diff --git a/src/tera/admin/user.rs b/src/tera/admin/user.rs index ea0eb56..aca09e9 100644 --- a/src/tera/admin/user.rs +++ b/src/tera/admin/user.rs @@ -15,7 +15,7 @@ use rocket::{ http::{ContentType, Status}, post, request::{FlashMessage, FromRequest, Outcome}, - response::{content, Flash, Redirect}, + response::{Flash, Redirect}, routes, FromForm, Request, Route, State, }; use rocket_dyn_templates::{tera::Context, Template}; -- 2.45.2