Skip to content

Commit 8c9e168

Browse files
committed
Avoid now needless conversion
1 parent 1b9fabd commit 8c9e168

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

graphannis/src/annis/db/exec/nodesearch.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,7 @@ impl<'a> NodeSearch<'a> {
10681068
}
10691069
Err(e) => Err(GraphAnnisError::from(e)),
10701070
})
1071-
.filter_map_ok(|m| m)
1072-
.map(|m| m.map_err(GraphAnnisError::from));
1071+
.filter_map_ok(|m| m);
10731072
let mut new_desc = desc.cloned();
10741073
if let Some(ref mut new_desc) = new_desc {
10751074
new_desc.impl_description = String::from("part-of-component-search");

0 commit comments

Comments
 (0)