From e76fff06d92280b846b58e860a566c765897472f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 15:50:49 +0100 Subject: [PATCH] Fix clippy: Replace str with char as pattern Signed-off-by: Matthias Beyer --- src/event_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event_stream.rs b/src/event_stream.rs index 9f5c11d..3295d0e 100644 --- a/src/event_stream.rs +++ b/src/event_stream.rs @@ -30,7 +30,7 @@ pub fn event_stream( while let Some(line) = lines_iter.next_line().await? { debug!(message = line, location = &location; "received message"); let line = line.trim().to_string(); - if line.starts_with(":") || line.is_empty() { + if line.starts_with(':') || line.is_empty() { continue; } lines.push(line);