From 26cc2f178c3654a09ee7c4227124689b8f4cb1c1 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Wed, 5 Jun 2024 03:05:54 +0200 Subject: [PATCH] irc: remove "None" fake capability --- crates/projection-irc/src/cap.rs | 1 - crates/projection-irc/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/projection-irc/src/cap.rs b/crates/projection-irc/src/cap.rs index 9d96cf2..6320226 100644 --- a/crates/projection-irc/src/cap.rs +++ b/crates/projection-irc/src/cap.rs @@ -3,7 +3,6 @@ use bitflags::bitflags; bitflags! { #[derive(Debug, Clone, Copy)] pub struct Capabilities: u32 { - const None = 0; const Sasl = 1 << 0; const ServerTime = 1 << 1; const ChatHistory = 1 << 2; diff --git a/crates/projection-irc/src/lib.rs b/crates/projection-irc/src/lib.rs index 4e5f1b4..41660cb 100644 --- a/crates/projection-irc/src/lib.rs +++ b/crates/projection-irc/src/lib.rs @@ -109,7 +109,7 @@ impl RegistrationState { RegistrationState { future_nickname: None, future_username: None, - enabled_capabilities: Capabilities::None, + enabled_capabilities: Capabilities::empty(), cap_negotiation_in_progress: false, pass: None, authentication_started: false,