summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/lua.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7bc135c..91604d7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
diff --git a/src/lua.rs b/src/lua.rs
index 5d84b6b..888dac0 100644
--- a/src/lua.rs
+++ b/src/lua.rs
@@ -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>,
{