From b3afaa8c66389cf414c45e231eb6c18873fe3544 Mon Sep 17 00:00:00 2001 From: Vlad Date: Fri, 4 Jun 2021 01:39:22 +0300 Subject: [PATCH] `mut` --- Cargo.toml | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1cfdf58..b188f84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tw-econ" -version = "0.4.3" +version = "0.4.4" authors = ["Vlad "] edition = "2018" license = "MIT" @@ -8,7 +8,7 @@ readme = "README.md" keywords = ["teeworlds", "console"] categories = ["command-line-interface", "api-bindings"] repository = "https://github.com/gerdoe-jr/tw-econ" -description = "Simple Rust library for using Teeworlds external console" +description = "Simple Rust library to use Teeworlds external console" [dependencies] sscanf = "0.1.1" diff --git a/src/lib.rs b/src/lib.rs index 29b755f..8d00714 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -182,8 +182,8 @@ impl EconConnection { tokio::spawn(async move { let addr = address.clone(); let mut password = password; password.push('\n'); - let stream = match TcpStream::connect(addr) { - Ok(s) => { + let mut stream = match TcpStream::connect(addr) { + Ok(mut s) => { let mut found = false; while !found { let mut buffer: [u8; 1024] = [0; 1024];