浏览代码

remove unwanted cloning while passing reference.

Bunny Bites 1 年之前
父节点
当前提交
8183935f66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/html/src/events/form.rs

+ 1 - 1
packages/html/src/events/form.rs

@@ -45,7 +45,7 @@ impl FormData {
         T: serde::de::DeserializeOwned,
     {
         let parsed_json =
-            convert_hashmap_to_json(&self.values.clone()).expect("Failed to parse values to JSON");
+            convert_hashmap_to_json(&self.values).expect("Failed to parse values to JSON");
 
         serde_json::from_str(&parsed_json)
     }