diff options
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/lua.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -70,6 +70,7 @@ hyper = { version = "0.14", features = ["client", "server"] } reqwest = { version = "0.11", features = ["json"] } tokio = { version = "1.0", features = ["full"] } futures-timer = "3.0" +serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" maplit = "1.0" tempfile = "3" @@ -956,7 +956,7 @@ impl Lua { /// ``` #[cfg(feature = "luau")] #[cfg_attr(docsrs, doc(cfg(feature = "luau")))] - pub fn set_interrupt<'lua, F>(&'lua self, callback: F) + pub fn set_interrupt<F>(&self, callback: F) where F: 'static + MaybeSend + Fn(&Lua) -> Result<VmState>, { |