remove unwanted cloning while passing reference.

This commit is contained in:
Bunny Bites 2023-11-11 09:36:26 +05:30
parent 2b459e6fc1
commit 8183935f66

View file

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