Closed bitfl0wer closed 1 month ago
Replaces the derived std::default::Default with
std::default::Default
impl std::default::Default for GatewayHello { fn default() -> Self { Self { // "HELLO" opcode is 10 op: 10, d: Default::default(), } } } impl std::default::Default for HelloData { fn default() -> Self { Self { // Discord docs mention 45000 seconds - discord.sex mentions 41250. Defaulting to 45s heartbeat_interval: 45000, } } }
Replaces the derived
std::default::Default
with