Replace val_to_string with to_string (via fmt::Display)

This commit is contained in:
Andrew Morris
2023-05-26 13:17:31 +10:00
parent 3cfe1a6527
commit bc89575eae
24 changed files with 217 additions and 167 deletions

View File

@@ -197,7 +197,7 @@ impl TryToVal for Value {
let mut string_map = BTreeMap::<String, Val>::new();
for (key, value) in obj.properties {
string_map.insert(key.try_to_val()?.val_to_string(), value.try_to_val()?);
string_map.insert(key.try_to_val()?.to_string(), value.try_to_val()?);
}
VsObject {