fixed unused imports

This commit is contained in:
Keanu D?lle 2021-07-21 21:43:55 +02:00
parent 93715fd905
commit e7ff4205b2
3 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
use rocket_dyn_templates::handlebars::{
Context, Handlebars, Helper, HelperDef, HelperResult, Output, RenderContext, RenderError,
Context, Handlebars, Helper, HelperResult, Output, RenderContext, RenderError,
Renderable,
};

View File

@ -2,10 +2,8 @@ use crate::helper::session_cookies::model::SessionCookieStorage;
use crate::helper::settings::Settings;
use chrono::{Duration, Utc};
use rocket::request::Outcome;
use rocket::response::{Redirect, Responder};
use rocket::{Request, State, Response};
use rocket::http::Status;
use rocket::response::status::Custom;
use rocket::response::Redirect;
use rocket::{Request, State};
/// Catches all 401 errors and redirects to front page to show error / portal page if cookie valled
/// Will be called when session cookies are invalid / if user has no permission to access feature

View File

@ -10,7 +10,6 @@ use diesel::result::Error;
use crate::database::controller::member_qualifications::check_qualification_for_member;
use uuid::Uuid;
use crate::modules::api::model::api_outcome::ApiErrorWrapper;
use rocket::serde::json::Json;
pub fn check_position_requirements(settings: &State<Settings>, position_id: uuid::Uuid, member_id: uuid::Uuid) -> Result<bool, RequirementParserError>{
let position = match get_eu_position(settings, position_id){