Skip to content

Commit

Permalink
[error.rs] Suppress spurious dead code warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 3, 2025
1 parent 76f2448 commit 6ff6150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#[derive(Debug)]
#[allow(dead_code)] // For debugging
pub enum FolderifyError {
CommandInvalid(CommandInvalidError),
CommandFailed(CommandFailedError),
General(GeneralError),
}

#[derive(Debug)]
#[allow(dead_code)] // For debugging
pub struct CommandInvalidError {
pub command_name: String,
}
Expand All @@ -17,6 +19,7 @@ impl From<CommandInvalidError> for FolderifyError {
}

#[derive(Debug)]
#[allow(dead_code)] // For debugging
pub struct CommandFailedError {
pub command_name: String,
pub stderr: Vec<u8>,
Expand All @@ -29,6 +32,7 @@ impl From<CommandFailedError> for FolderifyError {
}

#[derive(Debug)]
#[allow(dead_code)] // For debugging
pub struct GeneralError {
pub message: String,
}
Expand Down

0 comments on commit 6ff6150

Please sign in to comment.