diff --git a/src/config/mod.rs b/src/config/mod.rs index 18bcdbd..794cab2 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -182,6 +182,7 @@ impl Config { Ok(config) } + #[allow(dead_code)] pub fn save(&self) -> Result<(), Box> { let path = Self::config_path().ok_or("Could not determine config path")?; diff --git a/src/filter.rs b/src/filter.rs index 66733fc..1a0090e 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -56,6 +56,7 @@ impl ProviderFilter { } /// Default filter: apps only + #[allow(dead_code)] pub fn apps_only() -> Self { Self { enabled: HashSet::from([ProviderType::Application]), @@ -115,6 +116,7 @@ impl ProviderFilter { } /// Get current active prefix if any + #[allow(dead_code)] pub fn active_prefix(&self) -> Option { self.active_prefix } diff --git a/src/providers/dmenu.rs b/src/providers/dmenu.rs index d31abde..c638326 100644 --- a/src/providers/dmenu.rs +++ b/src/providers/dmenu.rs @@ -37,6 +37,7 @@ impl DmenuProvider { self.enabled = true; } + #[allow(dead_code)] pub fn is_enabled(&self) -> bool { self.enabled } diff --git a/src/providers/mod.rs b/src/providers/mod.rs index 6c418ef..ea68a92 100644 --- a/src/providers/mod.rs +++ b/src/providers/mod.rs @@ -14,6 +14,7 @@ use fuzzy_matcher::skim::SkimMatcherV2; /// Represents a single searchable/launchable item #[derive(Debug, Clone)] pub struct LaunchItem { + #[allow(dead_code)] pub id: String, pub name: String, pub description: Option, @@ -58,6 +59,7 @@ impl std::fmt::Display for ProviderType { /// Trait for all search providers pub trait Provider: Send { + #[allow(dead_code)] fn name(&self) -> &str; fn provider_type(&self) -> ProviderType; fn refresh(&mut self); @@ -98,6 +100,7 @@ impl ProviderManager { manager } + #[allow(dead_code)] pub fn is_dmenu_mode(&self) -> bool { self.providers .iter() @@ -110,6 +113,7 @@ impl ProviderManager { } } + #[allow(dead_code)] pub fn search(&self, query: &str, max_results: usize) -> Vec<(LaunchItem, i64)> { if query.is_empty() { // Return recent/popular items when query is empty @@ -197,6 +201,7 @@ impl ProviderManager { } /// Get all available provider types (for UI tabs) + #[allow(dead_code)] pub fn available_providers(&self) -> Vec { self.providers.iter().map(|p| p.provider_type()).collect() } diff --git a/src/providers/uuctl.rs b/src/providers/uuctl.rs index 7d1a241..64e6573 100644 --- a/src/providers/uuctl.rs +++ b/src/providers/uuctl.rs @@ -9,6 +9,7 @@ pub struct UuctlProvider { } /// Represents the state of a systemd service +#[allow(dead_code)] #[derive(Debug, Clone)] pub struct ServiceState { pub unit_name: String, diff --git a/src/ui/main_window.rs b/src/ui/main_window.rs index 2fc0a30..96af719 100644 --- a/src/ui/main_window.rs +++ b/src/ui/main_window.rs @@ -505,8 +505,8 @@ impl MainWindow { let results_list = self.results_list.clone(); let scrolled = self.scrolled.clone(); let search_entry = self.search_entry.clone(); - let current_results = self.current_results.clone(); - let config = self.config.clone(); + let _current_results = self.current_results.clone(); + let _config = self.config.clone(); let filter = self.filter.clone(); let filter_buttons = self.filter_buttons.clone(); let mode_label = self.mode_label.clone(); diff --git a/src/ui/result_row.rs b/src/ui/result_row.rs index 61fa7ec..11052c3 100644 --- a/src/ui/result_row.rs +++ b/src/ui/result_row.rs @@ -2,6 +2,7 @@ use crate::providers::LaunchItem; use gtk4::prelude::*; use gtk4::{Box as GtkBox, Image, Label, ListBoxRow, Orientation}; +#[allow(dead_code)] pub struct ResultRow { row: ListBoxRow, }