mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 07:48:37 +02:00
Apply nightly clippy fixes (#11508)
# Description Clippy fixes # User-Facing Changes N/A
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user