mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Replace val_to_string with to_string (via fmt::Display)
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user