summaryrefslogtreecommitdiff
path: root/src/function.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-05-16 20:11:47 +0100
committerAlex Orlenko <zxteam@protonmail.com>2022-05-16 20:29:02 +0100
commit8d71ea79aa6ccd01a399c4720591e94a8e15731c (patch)
treea57e144a7235de9164519ce312d3cd53ebbbe314 /src/function.rs
parent2a8c5c7f82e1b8cc2f9c0ef572756e5c16ae90b1 (diff)
downloadmlua-8d71ea79aa6ccd01a399c4720591e94a8e15731c.zip
Cache bytecode for internal Lua chunks
Diffstat (limited to 'src/function.rs')
-rw-r--r--src/function.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/function.rs b/src/function.rs
index 8e415d7..541627f 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -223,6 +223,7 @@ impl<'lua> Function<'lua> {
end
"#,
)
+ .try_cache()
.set_name("_mlua_bind")?
.call((self.clone(), args_wrapper))
}