Skip to content

Commit 4827edd

Browse files
committed
feat: bump rust edition to 2024
1 parent f6f6823 commit 4827edd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.8.0"
44
description = "Pocket Relay Server"
55
readme = "README.md"
66
keywords = ["EA", "PocketRelay", "MassEffect"]
7-
edition = "2021"
7+
edition = "2024"
88
license = "MIT"
99
authors = ["Jacobtread <jacobtread@gmail.com>"]
1010
repository = "https://github.com/PocketRelay/Server"

src/session/router.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Router implementation for routing packet components to different functions
22
//! and automatically decoding the packet contents to the function type
33
4-
use super::{models::errors::BlazeError, packet::Packet, SessionLink};
4+
use super::{SessionLink, models::errors::BlazeError, packet::Packet};
55
use crate::{
66
database::entities::{Player, PlayerData},
77
services::game::{GamePlayer, GamePlayerPlayerDataSnapshot},
88
session::models::errors::GlobalError,
99
utils::{
10-
components::{component_key, ComponentKey},
10+
components::{ComponentKey, component_key},
1111
hashing::IntHashMap,
1212
},
1313
};
@@ -19,11 +19,10 @@ use std::{
1919
any::{Any, TypeId},
2020
convert::Infallible,
2121
future::ready,
22-
future::Future,
2322
marker::PhantomData,
2423
sync::Arc,
2524
};
26-
use tdf::{serialize_vec, TdfDeserialize, TdfSerialize};
25+
use tdf::{TdfDeserialize, TdfSerialize, serialize_vec};
2726

2827
pub trait Handler<Args, Res>: Send + Sync + 'static {
2928
fn handle(&self, req: PacketRequest) -> BoxFuture<'_, Packet>;

0 commit comments

Comments
 (0)