mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +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,
|
||||
};
|
||||
|
||||
#[inline]
|
||||
fn _new(idx: u32) -> JsValue {
|
||||
JsValue {
|
||||
idx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user