From d17d9797c082af3b11a117e3bd5575b7c8083b3f Mon Sep 17 00:00:00 2001 From: Ross Andrews Date: Wed, 26 Nov 2025 00:22:41 -0600 Subject: [PATCH] cleanup --- Cargo.lock | 36 ------------------------------------ Cargo.toml | 1 - src/fleen_app.rs | 2 +- src/main.rs | 5 ++--- 4 files changed, 3 insertions(+), 41 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f2a11cf..1fd69ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1153,7 +1153,6 @@ dependencies = [ "clipboard-rs", "eframe", "egui_ltreeview", - "futures", "markdown", "rfd", "serde", @@ -1212,21 +1211,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "futures" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" version = "0.3.31" @@ -1234,7 +1218,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", - "futures-sink", ] [[package]] @@ -1243,17 +1226,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" -[[package]] -name = "futures-executor" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.31" @@ -1284,12 +1256,6 @@ dependencies = [ "syn", ] -[[package]] -name = "futures-sink" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" - [[package]] name = "futures-task" version = "0.3.31" @@ -1302,11 +1268,9 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ - "futures-channel", "futures-core", "futures-io", "futures-macro", - "futures-sink", "futures-task", "memchr", "pin-project-lite", diff --git a/Cargo.toml b/Cargo.toml index 791286c..4775d8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ tokio = { version = "1.47.1", features = ["full"] } tinyrand = "0.5.0" clipboard-rs = "0.3.0" tempfile = "3.23.0" -futures = "0.3.31" [package.metadata.bundle] identifier = "org.geekfu.fleen" diff --git a/src/fleen_app.rs b/src/fleen_app.rs index 18d30c8..3d40142 100644 --- a/src/fleen_app.rs +++ b/src/fleen_app.rs @@ -290,7 +290,7 @@ impl FleenApp { pub async fn build_and_deploy(&self) -> Result { let output_dir = tempfile::tempdir().map_err(|_| TargetDir)?; - self.build_site(&output_dir.path())?; // Attempt to build the site somewhere + self.build_site(output_dir.path())?; // Attempt to build the site somewhere let deploy_script_path = self.root.join("_scripts/deploy.sh"); if !deploy_script_path.exists() { diff --git a/src/main.rs b/src/main.rs index c158022..9be38d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,7 @@ mod server; mod ui_ext; use std::path::{Path, PathBuf}; -use std::sync::{Arc, Mutex, MutexGuard}; -use std::task::Waker; +use std::sync::{Arc, Mutex}; use std::time::{Duration, Instant}; use eframe::egui::{Button, Context, Id, RichText}; use eframe::{egui, Frame}; @@ -54,7 +53,7 @@ struct FleenUi { impl Default for FleenUi { fn default() -> Self { Self { - app: None.into(), + app: None, error: None, message: None, selected_file: None,