We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
&Scope
&mut Scope
1 parent 5b8681d commit 928e1d9Copy full SHA for 928e1d9
src/state.rs
@@ -1470,9 +1470,10 @@ impl Lua {
1470
/// lifetimes only outlive the scope lifetime.
1471
pub fn scope<'env, R>(
1472
&self,
1473
- f: impl for<'scope> FnOnce(&'scope Scope<'scope, 'env>) -> Result<R>,
+ f: impl for<'scope> FnOnce(&'scope mut Scope<'scope, 'env>) -> Result<R>,
1474
) -> Result<R> {
1475
- f(&Scope::new(self.lock_arc()))
+ // TODO: Update to `&Scope` in next major release
1476
+ f(&mut Scope::new(self.lock_arc()))
1477
}
1478
1479
/// Attempts to coerce a Lua value into a String in a manner consistent with Lua's internal
0 commit comments