mirror of https://github.com/MedzikUser/servers
fix(lint): clippy warnings
This commit is contained in:
parent
45a9fe605d
commit
5fa16c6705
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue