diff --git a/src/tcp/client.rs b/src/tcp/client.rs index 3fd9a23..93d7ebc 100644 --- a/src/tcp/client.rs +++ b/src/tcp/client.rs @@ -36,7 +36,7 @@ impl Client { let mut decoded = String::from_utf8(buf.to_vec())?; // remove new line characters - while decoded.ends_with("\n") || decoded.ends_with("\r") { + while decoded.ends_with('\n') || decoded.ends_with('\r') { decoded.pop(); }