Remove a source of unwrap

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2025-02-08 12:01:30 +01:00
parent 73391b5b7b
commit 6b1e799d6b

View file

@ -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),