mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-12 13:57:14 +00:00
Merge pull request #992 from alexcrichton/inline-trivial
Flag a trivial `JsValue` constructor as `#[inline]`
This commit is contained in:
commit
9ebbcd3827
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user