mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
format shall not be used
This commit is contained in:
@@ -66,10 +66,10 @@ pub fn exec_printf(values: &[Register]) -> crate::Result<Value> {
|
|||||||
}
|
}
|
||||||
let value = &values[args_index].get_value();
|
let value = &values[args_index].get_value();
|
||||||
match value {
|
match value {
|
||||||
Value::Integer(i) => result.push_str(&format!("{i}")),
|
Value::Integer(i) => result.push_str(&i.to_string()),
|
||||||
Value::Float(f) => {
|
Value::Float(f) => {
|
||||||
let truncated_val = *f as i64;
|
let truncated_val = *f as i64;
|
||||||
result.push_str(&format!("{truncated_val}"));
|
result.push_str(&truncated_val.to_string());
|
||||||
}
|
}
|
||||||
_ => result.push('0'),
|
_ => result.push('0'),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user