Skip to content

Commit 0786d90

Browse files
committed
Fix clippy error in webhook due to rust 1.91.0
1 parent e90a3c2 commit 0786d90

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/webhooks.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,14 @@ impl WebhookCreate {
6666
}
6767
}
6868

69-
#[derive(Debug, Clone, PartialEq, Eq)]
69+
#[derive(Debug, Clone, PartialEq, Eq, Default)]
7070
enum HeadersUpdate {
71+
#[default]
7172
NotSet,
7273
Reset,
7374
Set(BTreeMap<String, Option<String>>),
7475
}
7576

76-
impl Default for HeadersUpdate {
77-
fn default() -> Self {
78-
Self::NotSet
79-
}
80-
}
81-
8277
/// Payload used to update or delete settings of an existing webhook.
8378
#[derive(Debug, Clone, Default, PartialEq, Eq)]
8479
pub struct WebhookUpdate {

0 commit comments

Comments
 (0)