From e63c53315450ed305752566f4c3ad2bb76c8b8a3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 28 Apr 2021 15:10:44 -0400 Subject: enable error-on-warning (#10410) Only on linux and osx. Fixes one warning. --- core/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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)); } -- cgit v1.2.3