Skip to content

Commit 4891b65

Browse files
committed
Remove const from Value::type_name
1 parent fa343c2 commit 4891b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl Value {
8383
pub const NULL: Value = Value::LightUserData(LightUserData(ptr::null_mut()));
8484

8585
/// Returns type name of this value.
86-
pub const fn type_name(&self) -> &'static str {
86+
pub fn type_name(&self) -> &'static str {
8787
match *self {
8888
Value::Nil => "nil",
8989
Value::Boolean(_) => "boolean",

0 commit comments

Comments
 (0)