Remove a source of unwrap
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
73391b5b7b
commit
6b1e799d6b
1 changed files with 3 additions and 3 deletions
|
|
@ -254,7 +254,7 @@ impl<'v> Adapter<'v> for TrustfallMultiAdapter {
|
|||
contexts
|
||||
.clone()
|
||||
.into_iter()
|
||||
.map(|v| v.map(&mut |v: V| v.into_vertex().unwrap())),
|
||||
.map(|v| v.flat_map(&mut |v: V| v.into_vertex())),
|
||||
),
|
||||
&Arc::from(type_name),
|
||||
property_name,
|
||||
|
|
@ -295,7 +295,7 @@ impl<'v> Adapter<'v> for TrustfallMultiAdapter {
|
|||
contexts
|
||||
.clone()
|
||||
.into_iter()
|
||||
.map(|v| v.map(&mut |v: V| v.into_vertex().unwrap())),
|
||||
.map(|v| v.flat_map(&mut |v: V| v.into_vertex())),
|
||||
),
|
||||
&Arc::from(type_name),
|
||||
edge_name,
|
||||
|
|
@ -338,7 +338,7 @@ impl<'v> Adapter<'v> for TrustfallMultiAdapter {
|
|||
contexts
|
||||
.clone()
|
||||
.into_iter()
|
||||
.map(|v| v.map(&mut |v: V| v.into_vertex().unwrap())),
|
||||
.map(|v| v.flat_map(&mut |v: V| v.into_vertex())),
|
||||
),
|
||||
type_name,
|
||||
&Arc::from(coerce_to_type),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue