Skip to content

Commit

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

impl Client {
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
2 changes: 1 addition & 1 deletion pumpkin/src/rcon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct RCONClient {
}

impl RCONClient {
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 6484daa

Please sign in to comment.