Skip to content

Commit

Permalink
fix: cargo fmt :D
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Oct 21, 2024
1 parent 6484daa commit 3c57ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pumpkin/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ pub struct Client {
}

impl Client {
#[must_use] pub fn new(id: usize, connection: tokio::net::TcpStream, address: SocketAddr) -> Self {
#[must_use]
pub fn new(id: usize, connection: tokio::net::TcpStream, address: SocketAddr) -> Self {
let (connection_reader, connection_writer) = connection.into_split();
Self {
protocol_version: AtomicI32::new(0),
Expand Down
3 changes: 2 additions & 1 deletion pumpkin/src/rcon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ pub struct RCONClient {
}

impl RCONClient {
#[must_use] pub const fn new(connection: tokio::net::TcpStream, address: SocketAddr) -> Self {
#[must_use]
pub const fn new(connection: tokio::net::TcpStream, address: SocketAddr) -> Self {
Self {
connection,
address,
Expand Down

0 comments on commit 3c57ef0

Please sign in to comment.