remove unwanted cloning while passing reference.
This commit is contained in:
1 parent
2b459e6fc1
commit
8183935f66
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user