Skip to content

Commit 89760c0

Browse files
committed
Squelch dead-code warning.
1 parent 92c3399 commit 89760c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ impl fmt::Display for EventName {
114114
}
115115

116116
#[derive(Debug)]
117-
pub struct WebhookError(anyhow::Error);
117+
pub struct WebhookError(
118+
#[allow(dead_code)] // Used in debug display
119+
anyhow::Error,
120+
);
118121

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

0 commit comments

Comments
 (0)