diff options
Diffstat (limited to 'src/scope.rs')
-rw-r--r-- | src/scope.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scope.rs b/src/scope.rs index 271e742..9874fd9 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -434,6 +434,7 @@ impl<'lua, 'scope> Scope<'lua, 'scope> { push_table(state, 0, fields_nrec, true)?; } for (k, f) in registry.fields { + #[rustfmt::skip] let NonStaticMethod::Function(f) = f else { unreachable!() }; mlua_assert!(f(lua, 0)? == 1, "field function must return one value"); rawset_field(state, -2, &k)?; |