Skip to content

Commit d0f9e35

Browse files
authored
Merge pull request #2 from Project-Kunta/network_methods_wo_bodies
Fixed Network: Patterns aren’t allowed in methods without bodies
2 parents 0e27de6 + 17c88fd commit d0f9e35

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)