mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
Flag a trivial JsValue
constructor as #[inline]
No reason this shouldn't be inlined in optimized builds!
This commit is contained in:
parent
1fa407d2f9
commit
f3d9851c2d
@ -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