Skip to content

Commit

Permalink
Squelch dead-code warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 21, 2024
1 parent 92c3399 commit 89760c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ impl fmt::Display for EventName {
}

#[derive(Debug)]
pub struct WebhookError(anyhow::Error);
pub struct WebhookError(
#[allow(dead_code)] // Used in debug display
anyhow::Error,
);

impl From<anyhow::Error> for WebhookError {
fn from(e: anyhow::Error) -> WebhookError {
Expand Down

0 comments on commit 89760c0

Please sign in to comment.