Fix clippy: Replace str with char as pattern
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
af63e75e5d
commit
e76fff06d9
|
@ -30,7 +30,7 @@ pub fn event_stream(
|
||||||
while let Some(line) = lines_iter.next_line().await? {
|
while let Some(line) = lines_iter.next_line().await? {
|
||||||
debug!(message = line, location = &location; "received message");
|
debug!(message = line, location = &location; "received message");
|
||||||
let line = line.trim().to_string();
|
let line = line.trim().to_string();
|
||||||
if line.starts_with(":") || line.is_empty() {
|
if line.starts_with(':') || line.is_empty() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
lines.push(line);
|
lines.push(line);
|
||||||
|
|
Loading…
Reference in New Issue