Skip to content

Commit

Permalink
fix: err
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Dec 31, 2023
1 parent 13a3c2f commit 2be0055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/into_dart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl<T> IntoDart for HashSet<T>
T: IntoDart,
{
fn into_dart(self) -> DartCObject {
self.into_iter().collect::<Vec<T>>().into_dart()
DartArray::from(self.into_iter()).into_dart()
}
}

Expand All @@ -314,7 +314,7 @@ impl<K, V> IntoDart for HashMap<K, V>
V: IntoDart,
{
fn into_dart(self) -> DartCObject {
self.into_iter().collect::<Vec<(K, V)>>().into_dart()
DartArray::from(self.into_iter()).into_dart()
}
}

Expand Down

0 comments on commit 2be0055

Please sign in to comment.