Fix clippy: Replace str with char as pattern

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 15:50:49 +01:00
parent af63e75e5d
commit e76fff06d9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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);