From f3d9851c2d5c371c33b96ab5cfa4f6adb5961526 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 28 Oct 2018 13:16:10 -0700 Subject: [PATCH] Flag a trivial `JsValue` constructor as `#[inline]` No reason this shouldn't be inlined in optimized builds! --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 1c5ce6ea..95444ad7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,6 +99,7 @@ impl JsValue { _marker: marker::PhantomData, }; + #[inline] fn _new(idx: u32) -> JsValue { JsValue { idx,