From 8abf0ca393c92cb41df0b83c8cbba5605bb25432 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 10 Dec 2024 10:00:11 +1000 Subject: [PATCH] Remove unused dependencies and imports --- Cargo.lock | 1 - crates/subspace-gateway/Cargo.toml | 1 - crates/subspace-networking/examples/benchmark.rs | 2 +- crates/subspace-networking/examples/random-walker.rs | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 02f0843753..35d19fbc46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12765,7 +12765,6 @@ dependencies = [ "subspace-networking", "subspace-rpc-primitives", "subspace-verification", - "supports-color", "tokio", "tracing", ] diff --git a/crates/subspace-gateway/Cargo.toml b/crates/subspace-gateway/Cargo.toml index 351a80ea32..3127b26d06 100644 --- a/crates/subspace-gateway/Cargo.toml +++ b/crates/subspace-gateway/Cargo.toml @@ -42,6 +42,5 @@ subspace-logging = { version = "0.0.1", path = "../../shared/subspace-logging" } subspace-networking = { version = "0.1.0", path = "../subspace-networking" } subspace-rpc-primitives = { version = "0.1.0", path = "../subspace-rpc-primitives" } subspace-verification = { version = "0.1.0", path = "../subspace-verification", default-features = false } -supports-color = "3.0.1" tokio = { version = "1.40.0", features = ["rt-multi-thread", "signal", "macros"] } tracing = "0.1.40" diff --git a/crates/subspace-networking/examples/benchmark.rs b/crates/subspace-networking/examples/benchmark.rs index 250176d16f..85bfa61227 100644 --- a/crates/subspace-networking/examples/benchmark.rs +++ b/crates/subspace-networking/examples/benchmark.rs @@ -19,7 +19,7 @@ use subspace_logging::init_logger; use subspace_networking::protocols::request_response::handlers::piece_by_index::PieceByIndexRequestHandler; use subspace_networking::utils::piece_provider::{NoPieceValidator, PieceProvider, PieceValidator}; use subspace_networking::{Config, Node}; -use tracing::{debug, error, info, trace, warn, Level}; +use tracing::{debug, error, info, trace, warn}; /// Defines initial duration between get_piece calls. const GET_PIECE_INITIAL_INTERVAL: Duration = Duration::from_secs(5); diff --git a/crates/subspace-networking/examples/random-walker.rs b/crates/subspace-networking/examples/random-walker.rs index 05c5c9ea29..f2e4fac004 100644 --- a/crates/subspace-networking/examples/random-walker.rs +++ b/crates/subspace-networking/examples/random-walker.rs @@ -15,7 +15,7 @@ use subspace_networking::protocols::request_response::handlers::piece_by_index:: PieceByIndexRequest, PieceByIndexRequestHandler, PieceByIndexResponse, }; use subspace_networking::{Config, Multihash, Node, PeerDiscovered, SendRequestError}; -use tracing::{debug, error, info, warn, Level}; +use tracing::{debug, error, info, warn}; #[derive(Debug, Parser)] struct Args {