mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
remove unwanted cloning while passing reference.
This commit is contained in:
parent
2b459e6fc1
commit
8183935f66
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue