summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-04-28 15:10:44 -0400
committerGitHub <noreply@github.com>2021-04-28 15:10:44 -0400
commite63c53315450ed305752566f4c3ad2bb76c8b8a3 (patch)
treee8bde035d9a7e9c201f04ae1b489e6d3d28b517b /core/runtime.rs
parentf60373e0d1e9e1a4927d5ff855cab644d10d29d4 (diff)
enable error-on-warning (#10410)
Only on linux and osx. Fixes one warning.
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index 51b231eb0..4cfcad0ba 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -403,7 +403,7 @@ impl JsRuntime {
for e in extensions.iter_mut() {
e.init_state(&mut op_state.borrow_mut())?;
// Register each op after middlewaring it
- let mut ops = e.init_ops().unwrap_or_default();
+ let ops = e.init_ops().unwrap_or_default();
for (name, opfn) in ops {
self.register_op(name, macroware(name, opfn));
}