mirror of https://github.com/zyllian/classics.git synced 2025-05-12 05:50:54 -07:00

update dependencies

This commit is contained in:
zyl 2025-01-16 19:12:32 -08:00
parent b146afa72e
commit ff09a06b16
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
5 changed files with 182 additions and 251 deletions

View file

@ -105,7 +105,7 @@ impl<'m> Command<'m> {
pub const PREFIX: char = '/';
/// parses a command, returning the parsed command or an error to be displayed to the player who sent the command
pub fn parse(input: &'m str) -> Result<Command, String> {
pub fn parse(input: &'m str) -> Result<Command<'m>, String> {
let (command_name, mut arguments) = input.split_once(' ').unwrap_or((input, ""));
Ok(match command_name {
CMD_ME => Self::Me { action: arguments },

View file

@ -261,7 +261,7 @@ impl ServerPacket {
Self::ExtInfo => writer
.write_string(SERVER_NAME)
.write_i16(ExtBitmask::all().all_contained_info().len() as i16),
.write_i16(ExtBitmask::all_bits().all_contained_info().len() as i16),
Self::ExtEntry { ext_name, version } => {
writer.write_string(ext_name).write_i32(*version)
}

View file

@ -14,7 +14,7 @@ use super::{next_packet, write_packets};
pub async fn get_supported_extensions(
stream: &mut TcpStream,
) -> Result<(ExtBitmask, u8), GeneralError> {
let extensions = ExtBitmask::all().all_contained_info();
let extensions = ExtBitmask::all_bits().all_contained_info();
write_packets(
stream,