From a329a1a89a09358cb8f76c0442a4b01fe1a2a72f Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Fri, 18 Feb 2022 14:38:36 +0100 Subject: [PATCH] lint: fix clippy::single_component_path_imports --- src/mail.rs | 2 -- src/tokens.rs | 1 - src/web/manage.rs | 1 - src/web/mod.rs | 2 -- 4 files changed, 6 deletions(-) diff --git a/src/mail.rs b/src/mail.rs index 828fb38..ef36ee2 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -1,10 +1,8 @@ use std::path::{PathBuf, Path}; -use anyhow; use handlebars::Handlebars; use lettre::{Transport as LettreTransport, SendmailTransport, file::FileTransport}; use lettre::builder::{EmailBuilder, PartBuilder, Mailbox, MimeMultipartType}; -use url; use serde::Serialize; use uuid::Uuid; use crate::counters; diff --git a/src/tokens.rs b/src/tokens.rs index e43ca0a..cdc9f87 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -1,6 +1,5 @@ use crate::sealed_state::SealedState; -use serde_json; use serde::{Serialize,de::DeserializeOwned}; use crate::Result; diff --git a/src/web/manage.rs b/src/web/manage.rs index 8de06b3..a79084b 100644 --- a/src/web/manage.rs +++ b/src/web/manage.rs @@ -1,4 +1,3 @@ -use rocket; use rocket::form::Form; use rocket_i18n::I18n; diff --git a/src/web/mod.rs b/src/web/mod.rs index dea4394..78c7d2e 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -1,4 +1,3 @@ -use rocket; use rocket::figment::Figment; use rocket::fs::NamedFile; use rocket::http::{Header, Status}; @@ -519,7 +518,6 @@ pub mod tests { use std::io::Write; use std::path::Path; use tempfile::{tempdir, TempDir}; - use super::rocket; use rocket::http::Status; use rocket::http::ContentType; use rocket::http::Header;