Flag a trivial JsValue constructor as #[inline]

No reason this shouldn't be inlined in optimized builds!
This commit is contained in:
Alex Crichton 2018-10-28 13:16:10 -07:00
parent 1fa407d2f9
commit f3d9851c2d

View File

@ -99,6 +99,7 @@ impl JsValue {
_marker: marker::PhantomData,
};
#[inline]
fn _new(idx: u32) -> JsValue {
JsValue {
idx,