Skip to content

Commit 17c88fd

Browse files
Jovonni PharrJovonni Pharr
authored andcommitted
Fixed Network: Patterns aren’t allowed in methods without bodies
1 parent 3cde961 commit 17c88fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/network/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ impl Transmitter for Server {
378378
pub trait Receiver {
379379
fn start(&self) -> Result<String, String>;
380380
fn handle_client(stream: TcpStream) -> Result<String, String>;
381-
fn handle_read(mut stream: &TcpStream) -> Result<String, String>;
382-
fn handle_write(mut stream: TcpStream, result: String) -> Result<String, String>;
381+
fn handle_read(stream: &TcpStream) -> Result<String, String>;
382+
fn handle_write(stream: TcpStream, result: String) -> Result<String, String>;
383383
}
384384

385385
/*

0 commit comments

Comments
 (0)