From 5fa16c67050721b54bde4f26ae4abe07105413b6 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Thu, 4 Aug 2022 16:39:55 +0200 Subject: [PATCH] fix(lint): clippy warnings --- src/tcp/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }