From 405459e18506f826f1dfccc7b565b5b0abe30aac Mon Sep 17 00:00:00 2001 From: Petar Vujovic Date: Tue, 18 Jun 2024 14:39:55 +0200 Subject: [PATCH] chore(clippy): remove unused imports --- host/src/lib.rs | 14 ++++++-------- host/src/server/api/v2/mod.rs | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/host/src/lib.rs b/host/src/lib.rs index 88dc13c8e..5171fe75c 100644 --- a/host/src/lib.rs +++ b/host/src/lib.rs @@ -11,12 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. - -pub mod interfaces; -pub mod metrics; -pub mod server; - -use std::{alloc, path::PathBuf, sync::Arc}; +use std::{alloc, path::PathBuf}; use anyhow::Context; use cap::Cap; @@ -26,13 +21,16 @@ use raiko_core::{ merge, }; use raiko_lib::consts::SupportedChainSpecs; -use raiko_task_manager::TaskDb; use serde::{Deserialize, Serialize}; use serde_json::Value; -use tokio::sync::{mpsc, Mutex}; +use tokio::sync::mpsc; use crate::interfaces::HostResult; +pub mod interfaces; +pub mod metrics; +pub mod server; + #[global_allocator] static ALLOCATOR: Cap = Cap::new(alloc::System, usize::MAX); diff --git a/host/src/server/api/v2/mod.rs b/host/src/server/api/v2/mod.rs index 993445e1c..47d9b49ff 100644 --- a/host/src/server/api/v2/mod.rs +++ b/host/src/server/api/v2/mod.rs @@ -1,4 +1,3 @@ -mod proof; use axum::Router; use utoipa::OpenApi; use utoipa_scalar::{Scalar, Servable}; @@ -9,6 +8,8 @@ use crate::{ ProverState, }; +mod proof; + #[derive(OpenApi)] #[openapi( info(