Browse Source

fixed unused imports

develop
Keanu D?lle 2 months ago
parent
commit
e7ff4205b2
  1. 2
      src/helper/handlebars_in_list_helper.rs
  2. 6
      src/helper/server_errors.rs
  3. 1
      src/modules/event_management/check_position_requirements.rs

2
src/helper/handlebars_in_list_helper.rs

@ -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,
};

6
src/helper/server_errors.rs

@ -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

1
src/modules/event_management/check_position_requirements.rs

@ -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){

Loading…
Cancel
Save