From 2be00551e1fee3437684eae2a2ba8ee40e815ce1 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 31 Dec 2023 21:28:46 +0800 Subject: [PATCH] fix: err --- src/into_dart.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/into_dart.rs b/src/into_dart.rs index 7392a51..0c7e579 100644 --- a/src/into_dart.rs +++ b/src/into_dart.rs @@ -302,7 +302,7 @@ impl IntoDart for HashSet T: IntoDart, { fn into_dart(self) -> DartCObject { - self.into_iter().collect::>().into_dart() + DartArray::from(self.into_iter()).into_dart() } } @@ -314,7 +314,7 @@ impl IntoDart for HashMap V: IntoDart, { fn into_dart(self) -> DartCObject { - self.into_iter().collect::>().into_dart() + DartArray::from(self.into_iter()).into_dart() } }