Skip to content

Commit 056e8d2

Browse files
committed
thanks clippy
1 parent 0c597fe commit 056e8d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/plumbing/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ pub fn main() -> Result<()> {
215215
stdin_or_bail()?
216216
.byte_lines()
217217
.filter_map(Result::ok)
218-
.map(|line| git::path::Spec::from_bytes(line.as_bstr()))
219-
.flatten(),
218+
.filter_map(|line| git::path::Spec::from_bytes(line.as_bstr())),
220219
) as Box<dyn Iterator<Item = git::path::Spec>>
221220
} else {
222221
Box::new(pathspecs.into_iter())

0 commit comments

Comments
 (0)