diff options
Diffstat (limited to 'src/value.rs')
-rw-r--r-- | src/value.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.rs b/src/value.rs index 06e88dc..eefbf8a 100644 --- a/src/value.rs +++ b/src/value.rs @@ -53,7 +53,7 @@ pub enum Value<'lua> { pub use self::Value::Nil; impl<'lua> Value<'lua> { - pub fn type_name(&self) -> &'static str { + pub const fn type_name(&self) -> &'static str { match *self { Value::Nil => "nil", Value::Boolean(_) => "boolean", |