mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +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,
|
T: serde::de::DeserializeOwned,
|
||||||
{
|
{
|
||||||
let parsed_json =
|
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)
|
serde_json::from_str(&parsed_json)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue