Compare commits
1 Commits
master
...
deref-not-
Author | SHA1 | Date |
---|---|---|
NikVolf | fdf65737ce |
|
@ -603,6 +603,14 @@ pub struct NotStartedModuleRef<'a> {
|
||||||
instance: ModuleRef,
|
instance: ModuleRef,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> ::std::ops::Deref for NotStartedModuleRef<'a> {
|
||||||
|
type Target = ModuleInstance;
|
||||||
|
|
||||||
|
fn deref(&self) -> &ModuleInstance {
|
||||||
|
&*self.instance
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<'a> NotStartedModuleRef<'a> {
|
impl<'a> NotStartedModuleRef<'a> {
|
||||||
pub fn not_started_instance(&self) -> &ModuleRef {
|
pub fn not_started_instance(&self) -> &ModuleRef {
|
||||||
&self.instance
|
&self.instance
|
||||||
|
|
Loading…
Reference in New Issue