Skip to content

Commit fd373f4

Browse files
committed
Fix clippy lint
1 parent d230c4a commit fd373f4

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

infinitree/src/tree.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -352,16 +352,18 @@ impl<I: Index> Infinitree<I> {
352352
let object = self.object_reader()?;
353353
let commits_for_field = self.field_for_version(&field.name);
354354

355-
Ok(<Q as Collection>::Depth::resolve(index, commits_for_field)
356-
.map(move |transaction| {
357-
QueryIteratorOwned::new(
358-
transaction,
359-
object.clone(),
360-
pred.clone(),
361-
field.strategy.as_mut(),
362-
)
363-
})
364-
.flatten())
355+
Ok(
356+
<Q as Collection>::Depth::resolve(index, commits_for_field).flat_map(
357+
move |transaction| {
358+
QueryIteratorOwned::new(
359+
transaction,
360+
object.clone(),
361+
pred.clone(),
362+
field.strategy.as_mut(),
363+
)
364+
},
365+
),
366+
)
365367
}
366368

367369
fn store_start_object(&self, _name: &str) -> ObjectId {

0 commit comments

Comments
 (0)