summaryrefslogtreecommitdiff
path: root/src/scope.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-08-27 23:26:27 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-08-27 23:26:27 +0100
commit6488477bc4abe17b4bbe9fccf3db77341fa1b786 (patch)
tree15400944c48e28e9e481821ff644ce713fba3d02 /src/scope.rs
parent53b7b5b70bbb640609e23f3cfb91d62739f3c806 (diff)
downloadmlua-6488477bc4abe17b4bbe9fccf3db77341fa1b786.zip
rustfmt 1.72+
Diffstat (limited to 'src/scope.rs')
-rw-r--r--src/scope.rs1
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)?;