From c946855c0e081f21fb6e750bd4b4894f63df4477 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Dec 2020 11:26:55 +0100 Subject: Remove unused imports Signed-off-by: Matthias Beyer --- src/commands/build.rs | 1 - src/commands/release.rs | 10 ---------- src/config/configuration.rs | 6 ------ src/config/not_validated.rs | 1 - src/endpoint/configuration.rs | 2 -- src/endpoint/configured.rs | 1 - src/endpoint/scheduler.rs | 1 - src/filestore/staging.rs | 2 -- src/filestore/util.rs | 2 -- src/ui.rs | 1 - 10 files changed, 27 deletions(-) diff --git a/src/commands/build.rs b/src/commands/build.rs index 02a122d..0568790 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -1,4 +1,3 @@ -use std::collections::BTreeMap; use std::io::Write; use std::path::Path; use std::path::PathBuf; diff --git a/src/commands/release.rs b/src/commands/release.rs index 4bfba2f..52693d3 100644 --- a/src/commands/release.rs +++ b/src/commands/release.rs @@ -1,4 +1,3 @@ -use std::io::Write; use std::path::PathBuf; use anyhow::Error; @@ -6,18 +5,9 @@ use anyhow::Result; use anyhow::anyhow; use clap::ArgMatches; use tokio::stream::StreamExt; -use tokio::io::AsyncWriteExt; use diesel::prelude::*; -use crate::config::*; -use crate::package::Package; -use crate::package::PackageName; -use crate::package::PackageVersionConstraint; -use crate::repository::Repository; -use crate::source::*; -use crate::util::progress::ProgressBars; use crate::db::models as dbmodels; -use crate::schema::submits::dsl; use crate::config::Configuration; use crate::db::DbConnectionConfig; diff --git a/src/config/configuration.rs b/src/config/configuration.rs index 162115b..10ee21a 100644 --- a/src/config/configuration.rs +++ b/src/config/configuration.rs @@ -1,10 +1,4 @@ -use std::collections::BTreeMap; use std::ops::Deref; -use std::path::PathBuf; - -use anyhow::Context; -use anyhow::Result; -use handlebars::Handlebars; use crate::config::NotValidatedConfiguration; diff --git a/src/config/not_validated.rs b/src/config/not_validated.rs index c8fbb3f..6cf7148 100644 --- a/src/config/not_validated.rs +++ b/src/config/not_validated.rs @@ -2,7 +2,6 @@ use std::path::PathBuf; use anyhow::anyhow; use anyhow::Result; use getset::Getters; -use handlebars::Handlebars; use serde::Deserialize; use crate::config::Configuration; diff --git a/src/endpoint/configuration.rs b/src/endpoint/configuration.rs index d865940..4781599 100644 --- a/src/endpoint/configuration.rs +++ b/src/endpoint/configuration.rs @@ -1,8 +1,6 @@ -use anyhow::Result; use getset::Getters; use typed_builder::TypedBuilder; -use crate::endpoint::Endpoint; use crate::util::docker::ImageName; #[derive(Getters, TypedBuilder)] diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index 533b499..2d6ee44 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -9,7 +9,6 @@ use anyhow::Error; use anyhow::Result; use anyhow::anyhow; use futures::FutureExt; -use futures::future::TryFutureExt; use getset::{Getters, CopyGetters}; use shiplift::Docker; use shiplift::ExecContainerOptions; diff --git a/src/endpoint/scheduler.rs b/src/endpoint/scheduler.rs index 24490ed..58c06c6 100644 --- a/src/endpoint/scheduler.rs +++ b/src/endpoint/scheduler.rs @@ -134,7 +134,6 @@ impl std::fmt::Debug for JobHandle { impl JobHandle { pub async fn run(self) -> RResult, ContainerError> { - use crate::db::models as dbmodels; let (log_sender, log_receiver) = tokio::sync::mpsc::unbounded_channel::(); let ep = self.endpoint.read().await; let endpoint = dbmodels::Endpoint::create_or_fetch(&self.db, ep.name())?; diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs index c212674..26f91a8 100644 --- a/src/filestore/staging.rs +++ b/src/filestore/staging.rs @@ -8,11 +8,9 @@ use anyhow::Result; use anyhow::anyhow; use futures::stream::Stream; use indicatif::ProgressBar; -use resiter::Map; use result_inspect::ResultInspect; use tar; -use crate::filestore::Artifact; use crate::filestore::util::FileStoreImpl; // The implementation of this type must be available in the merged filestore. diff --git a/src/filestore/util.rs b/src/filestore/util.rs index 2927406..359b8db 100644 --- a/src/filestore/util.rs +++ b/src/filestore/util.rs @@ -14,8 +14,6 @@ use resiter::Map; use walkdir::WalkDir; use crate::filestore::Artifact; -use crate::package::PackageName; -use crate::package::PackageVersionConstraint; /// The actual filestore implementation /// diff --git a/src/ui.rs b/src/ui.rs index 5489ca7..7ef964d 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -8,7 +8,6 @@ use anyhow::Error; use anyhow::Result; use anyhow::anyhow; use handlebars::Handlebars; -use itertools::Itertools; use crate::package::Package; -- cgit v1.2.3