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
This commit is contained in:
parent
c132265d31
commit
00425fcf4b
1 changed files with 5 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ use crate::app::ContextPage;
|
||||||
pub enum AppMessage {
|
pub enum AppMessage {
|
||||||
// === File / Navigation ===
|
// === File / Navigation ===
|
||||||
/// Open a file at the given path.
|
/// Open a file at the given path.
|
||||||
|
#[allow(dead_code)]
|
||||||
OpenPath(PathBuf),
|
OpenPath(PathBuf),
|
||||||
/// Navigate to the next document in folder.
|
/// Navigate to the next document in folder.
|
||||||
NextDocument,
|
NextDocument,
|
||||||
|
|
@ -66,14 +67,18 @@ pub enum AppMessage {
|
||||||
|
|
||||||
// === Metadata ===
|
// === Metadata ===
|
||||||
/// Refresh metadata from the current document.
|
/// Refresh metadata from the current document.
|
||||||
|
#[allow(dead_code)]
|
||||||
RefreshMetadata,
|
RefreshMetadata,
|
||||||
|
|
||||||
// === Errors ===
|
// === Errors ===
|
||||||
/// Display an error message.
|
/// Display an error message.
|
||||||
|
#[allow(dead_code)]
|
||||||
ShowError(String),
|
ShowError(String),
|
||||||
/// Clear the current error.
|
/// Clear the current error.
|
||||||
|
#[allow(dead_code)]
|
||||||
ClearError,
|
ClearError,
|
||||||
|
|
||||||
/// Fallback for unhandled or no-op cases.
|
/// Fallback for unhandled or no-op cases.
|
||||||
|
#[allow(dead_code)]
|
||||||
NoOp,
|
NoOp,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue