From 00425fcf4b933094e0029c877de039b68f1d2f75 Mon Sep 17 00:00:00 2001 From: mow Date: Thu, 15 Jan 2026 18:21:50 +0100 Subject: [PATCH] chore: suppress dead_code warnings for future features Mark unused message variants with #[allow(dead_code)] to indicate they are intentionally kept for future implementation: - OpenPath: for file dialog integration - RefreshMetadata: for metadata panel updates - ShowError/ClearError: for error handling UI - NoOp: fallback/placeholder message --- src/app/message.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/message.rs b/src/app/message.rs index 443243c..8fc4eae 100644 --- a/src/app/message.rs +++ b/src/app/message.rs @@ -12,6 +12,7 @@ use crate::app::ContextPage; pub enum AppMessage { // === File / Navigation === /// Open a file at the given path. + #[allow(dead_code)] OpenPath(PathBuf), /// Navigate to the next document in folder. NextDocument, @@ -66,14 +67,18 @@ pub enum AppMessage { // === Metadata === /// Refresh metadata from the current document. + #[allow(dead_code)] RefreshMetadata, // === Errors === /// Display an error message. + #[allow(dead_code)] ShowError(String), /// Clear the current error. + #[allow(dead_code)] ClearError, /// Fallback for unhandled or no-op cases. + #[allow(dead_code)] NoOp, }