Allow Runtime to deref to inner State
This commit is contained in:
parent
7e8a655186
commit
3ac7df004d
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user