From 7496d0e964514f11b4e14c3029467f305af80113 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 15 May 2024 15:07:49 +0200 Subject: [PATCH] chore: remove unused variables Signed-off-by: kjuulh --- crates/hyperlog-server/src/services/create_item.rs | 2 +- crates/hyperlog-server/src/services/create_section.rs | 2 -- crates/hyperlog-server/src/services/get_available_roots.rs | 3 --- crates/hyperlog-tui/src/commands/open_update_item_dialog.rs | 2 -- crates/hyperlog/src/cli.rs | 2 -- 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/hyperlog-server/src/services/create_item.rs b/crates/hyperlog-server/src/services/create_item.rs index 9ce7dfc..55dd16f 100644 --- a/crates/hyperlog-server/src/services/create_item.rs +++ b/crates/hyperlog-server/src/services/create_item.rs @@ -1,4 +1,4 @@ -use hyperlog_core::log::{GraphItem, ItemState}; +use hyperlog_core::log::ItemState; use sqlx::types::Json; use crate::state::SharedState; diff --git a/crates/hyperlog-server/src/services/create_section.rs b/crates/hyperlog-server/src/services/create_section.rs index b2ed365..8f39e39 100644 --- a/crates/hyperlog-server/src/services/create_section.rs +++ b/crates/hyperlog-server/src/services/create_section.rs @@ -1,5 +1,3 @@ -use hyperlog_core::log::GraphItem; - use crate::state::SharedState; #[derive(Clone)] diff --git a/crates/hyperlog-server/src/services/get_available_roots.rs b/crates/hyperlog-server/src/services/get_available_roots.rs index df352ed..29354e5 100644 --- a/crates/hyperlog-server/src/services/get_available_roots.rs +++ b/crates/hyperlog-server/src/services/get_available_roots.rs @@ -1,6 +1,3 @@ -use hyperlog_core::log::{GraphItem, ItemState}; -use sqlx::types::Json; - use crate::state::SharedState; #[derive(Clone)] diff --git a/crates/hyperlog-tui/src/commands/open_update_item_dialog.rs b/crates/hyperlog-tui/src/commands/open_update_item_dialog.rs index 23ae2cd..0d8565d 100644 --- a/crates/hyperlog-tui/src/commands/open_update_item_dialog.rs +++ b/crates/hyperlog-tui/src/commands/open_update_item_dialog.rs @@ -1,5 +1,3 @@ -use itertools::Itertools; - use crate::{ models::{IOEvent, Msg}, querier::Querier, diff --git a/crates/hyperlog/src/cli.rs b/crates/hyperlog/src/cli.rs index ed4352d..67b484a 100644 --- a/crates/hyperlog/src/cli.rs +++ b/crates/hyperlog/src/cli.rs @@ -1,5 +1,3 @@ -use std::net::SocketAddr; - use clap::{Parser, Subcommand, ValueEnum}; use hyperlog_tui::{ commander,