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:
Umesh Yadav 2025-08-20 23:44:30 +05:30 committed by Orual
parent 4569857994
commit 0f076b98f5
No known key found for this signature in database
20 changed files with 35 additions and 32 deletions

View file

@ -916,7 +916,7 @@ impl GitRepository for RealGitRepository {
.context("no stdin for git cat-file subprocess")?;
let mut stdin = BufWriter::new(stdin);
for rev in &revs {
write!(&mut stdin, "{rev}\n")?;
writeln!(&mut stdin, "{rev}")?;
}
stdin.flush()?;
drop(stdin);