Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 30, 2022
1 parent 0c597fe commit 056e8d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Iterator<Item = git::path::Spec>>
} else {
Box::new(pathspecs.into_iter())
Expand Down

0 comments on commit 056e8d2

Please sign in to comment.