From d3ab5928eb8f2bca76454cdf574bee91749f0804 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Sat, 14 Oct 2023 10:25:28 +0200 Subject: [PATCH] Add default impl for voicegatewayerror --- src/errors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index e8075c2..07bd5b3 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -91,9 +91,10 @@ custom_error! { /// Similar to [GatewayError]. /// /// See https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice; - #[derive(Clone, PartialEq, Eq)] + #[derive(Clone, Default, PartialEq, Eq)] pub VoiceGatewayError // Errors we receive + #[default] UnknownOpcode = "You sent an invalid opcode", FailedToDecodePayload = "You sent an invalid payload in your identifying to the (Webrtc) Gateway", NotAuthenticated = "You sent a payload before identifying with the (Webrtc) Gateway",