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

@@ -239,7 +239,7 @@ impl StackFrameTrait for SortFrame {
array_data_mut
.elements
.sort_by(|a, b| a.val_to_string().cmp(&b.val_to_string()));
.sort_by(|a, b| a.to_string().cmp(&b.to_string()));
return Ok(FrameStepOk::Pop(CallResult {
return_: Val::Array(array_data.clone()),