clippy :-)
This commit is contained in:
@ -109,9 +109,7 @@ fn forbidden_error() -> Flash<Redirect> {
|
||||
Flash::error(Redirect::to("/"), "Keine Berechtigung für diese Aktion. Wenn du der Meinung bist, dass du das machen darfst, melde dich bitte bei it@rudernlinz.at.")
|
||||
}
|
||||
|
||||
struct Usage {
|
||||
data: Vec<String>,
|
||||
}
|
||||
struct Usage {}
|
||||
|
||||
#[rocket::async_trait]
|
||||
impl Fairing for Usage {
|
||||
@ -196,7 +194,7 @@ pub fn config(rocket: Rocket<Build>) -> Rocket<Build> {
|
||||
.register("/", catchers![unauthorized_error, forbidden_error])
|
||||
.attach(Template::fairing())
|
||||
.attach(AdHoc::config::<Config>())
|
||||
.attach(Usage { data: Vec::new() })
|
||||
.attach(Usage {})
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user