We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
&Scope
&mut Scope
Lua::scope
1 parent 58965c6 commit 21d39a0Copy full SHA for 21d39a0
src/state.rs
@@ -1477,10 +1477,10 @@ impl Lua {
1477
/// lifetimes only outlive the scope lifetime.
1478
pub fn scope<'env, R>(
1479
&self,
1480
- f: impl for<'scope> FnOnce(&'scope mut Scope<'scope, 'env>) -> Result<R>,
+ f: impl for<'scope> FnOnce(&'scope Scope<'scope, 'env>) -> Result<R>,
1481
) -> Result<R> {
1482
// TODO: Update to `&Scope` in next major release
1483
- f(&mut Scope::new(self.lock_arc()))
+ f(&Scope::new(self.lock_arc()))
1484
}
1485
1486
/// Attempts to coerce a Lua value into a String in a manner consistent with Lua's internal
0 commit comments