Skip to content

Commit

Permalink
Merge pull request #1763 from ehuss/dead-code-webhook
Browse files Browse the repository at this point in the history
Squelch dead-code warning.
  • Loading branch information
jackh726 authored Feb 7, 2024
2 parents 403a20b + 89760c0 commit 055e12b
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 055e12b

Please sign in to comment.