Allow exhaustive match on Value.

It was not possible because `ValueRef` variant in `Value::Other` was private.
Closes #502 and #503
This commit is contained in:
Alex Orlenko
2024-12-10 23:35:39 +00:00
parent 91e069a77e
commit cd4091f64d
3 changed files with 24 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use std::os::raw::{c_int, c_void};
use crate::state::{RawLua, WeakLua};
/// A reference to a Lua (complex) value stored in the Lua auxiliary thread.
pub(crate) struct ValueRef {
pub struct ValueRef {
pub(crate) lua: WeakLua,
pub(crate) index: c_int,
pub(crate) drop: bool,