Allow Runtime to deref to inner State

This commit is contained in:
lumi 2025-06-25 14:27:05 +10:00
parent 7e8a655186
commit 3ac7df004d
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -1,4 +1,5 @@
use crate::{channel::lb_libchannel, fs::lb_libfs, net::lb_libnet, task::lb_libtask};
use derive_more::{Deref, DerefMut};
use luaffi::{Registry, Type};
use luajit::{Chunk, State};
use std::fmt::Display;
@ -48,8 +49,10 @@ impl Builder {
}
}
#[derive(Debug)]
#[derive(Debug, Deref, DerefMut)]
pub struct Runtime {
#[deref]
#[deref_mut]
state: State,
tasks: LocalSet,
}