Update display impl for value
This commit is contained in:
parent
3360f14913
commit
c37682aa19
@ -198,9 +198,9 @@ impl Display for Value {
|
||||
Value::Integer(lua_integer) => Display::fmt(&lua_integer.0, f),
|
||||
Value::Boolean(lua_bool) => Display::fmt(&lua_bool.0, f),
|
||||
Value::RustFunction(ref_cell) => {
|
||||
write!(f, "<RustFunction({})>", ref_cell.borrow().as_indexable())
|
||||
write!(f, "<RustFunction#{}>", ref_cell.borrow().as_indexable())
|
||||
}
|
||||
Value::Function(closure) => write!(f, "<function({})>", closure.prototype),
|
||||
Value::Function(closure) => write!(f, "<function#{}>", closure.prototype),
|
||||
Value::Nil => write!(f, "nil"),
|
||||
Value::Table { contents, .. } => write!(f, "<table#{}>", contents.as_ptr() as u64),
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user