Apply nightly clippy fixes (#11508)

# Description

Clippy fixes

# User-Facing Changes
N/A
This commit is contained in:
nibon7
2024-01-15 10:52:16 +08:00
committed by GitHub
parent 42b03917fb
commit a109283118
4 changed files with 2 additions and 9 deletions

View File

@ -181,7 +181,7 @@ pub fn chop() {
let stdin = io::stdin();
let mut stdout = io::stdout();
for given in stdin.lock().lines().flatten() {
for given in stdin.lock().lines().map_while(Result::ok) {
let chopped = if given.is_empty() {
&given
} else {