Fix clippy::println_empty_string
, clippy::while_let_on_iterator
, clippy::while_let_on_iterator
lint style violations (#36613)
Related: #36577 Release Notes: - N/A
This commit is contained in:
parent
41e28a7185
commit
ec8106d1db
20 changed files with 35 additions and 32 deletions
|
@ -2024,8 +2024,8 @@ mod tests {
|
|||
fn gen_working_copy(rng: &mut StdRng, head: &str) -> String {
|
||||
let mut old_lines = {
|
||||
let mut old_lines = Vec::new();
|
||||
let mut old_lines_iter = head.lines();
|
||||
while let Some(line) = old_lines_iter.next() {
|
||||
let old_lines_iter = head.lines();
|
||||
for line in old_lines_iter {
|
||||
assert!(!line.ends_with("\n"));
|
||||
old_lines.push(line.to_owned());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue