diff --git a/src/plumbing/main.rs b/src/plumbing/main.rs index 033b1279f69..c30b69fced1 100644 --- a/src/plumbing/main.rs +++ b/src/plumbing/main.rs @@ -215,8 +215,7 @@ pub fn main() -> Result<()> { stdin_or_bail()? .byte_lines() .filter_map(Result::ok) - .map(|line| git::path::Spec::from_bytes(line.as_bstr())) - .flatten(), + .filter_map(|line| git::path::Spec::from_bytes(line.as_bstr())), ) as Box> } else { Box::new(pathspecs.into_iter())