From 5327aff217b8452883af53c374d2f80fdecb9dd0 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 30 Apr 2024 20:37:15 +0200 Subject: [PATCH] refactor: remove unused imports Signed-off-by: kjuulh --- crates/hyperlog-core/src/log.rs | 2 +- crates/hyperlog/src/cli.rs | 12 ++---------- crates/hyperlog/src/server.rs | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/hyperlog-core/src/log.rs b/crates/hyperlog-core/src/log.rs index 0aa5e8f..fa3720d 100644 --- a/crates/hyperlog-core/src/log.rs +++ b/crates/hyperlog-core/src/log.rs @@ -96,7 +96,7 @@ impl DerefMut for Graph { #[cfg(test)] mod test { - use std::collections::{hash_map, BTreeMap, HashMap}; + use std::collections::BTreeMap; use crate::log::{GraphItem, ItemState}; diff --git a/crates/hyperlog/src/cli.rs b/crates/hyperlog/src/cli.rs index ac174de..e3cc2fd 100644 --- a/crates/hyperlog/src/cli.rs +++ b/crates/hyperlog/src/cli.rs @@ -1,17 +1,9 @@ -use std::{net::SocketAddr, ops::Deref, sync::Arc}; +use std::net::SocketAddr; -use axum::extract::MatchedPath; -use axum::http::Request; -use axum::routing::get; -use axum::Router; use clap::{Parser, Subcommand}; use hyperlog_core::{commander, state}; -use tower_http::trace::TraceLayer; -use crate::{ - server::serve, - state::{SharedState, State}, -}; +use crate::server::serve; #[derive(Parser)] #[command(author, version, about, long_about = None, subcommand_required = true)] diff --git a/crates/hyperlog/src/server.rs b/crates/hyperlog/src/server.rs index 70b5e39..f734d1c 100644 --- a/crates/hyperlog/src/server.rs +++ b/crates/hyperlog/src/server.rs @@ -3,7 +3,7 @@ use std::{net::SocketAddr, sync::Arc}; use axum::{extract::MatchedPath, http::Request, routing::get, Router}; use tower_http::trace::TraceLayer; -use crate::state::{self, SharedState, State}; +use crate::state::{SharedState, State}; async fn root() -> &'static str { "Hello, hyperlog!"