Merge pull request #992 from alexcrichton/inline-trivial

Flag a trivial `JsValue` constructor as `#[inline]`
This commit is contained in:
Alex Crichton 2018-10-28 14:57:53 -07:00 committed by GitHub
commit 9ebbcd3827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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