Skip to content

Commit

Permalink
tests: Use lines instead of split('\n')
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 22, 2024
1 parent e08262a commit 1793017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auxiliary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn replace_command(lines: &str) -> String {
}
}
fn line_separated(lines: &str) -> impl Iterator<Item = &'_ str> {
lines.split('\n').map(str::trim).filter(|line| !line.is_empty())
lines.lines().map(str::trim).filter(|line| !line.is_empty())
}

impl AssertOutput {
Expand Down

0 comments on commit 1793017

Please sign in to comment.