mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Removing TODOs
This commit is contained in:
parent
b9fd30b49e
commit
497c5ed423
@ -4593,11 +4593,6 @@ macro_rules! arrays {
|
||||
impl<'a> From<&'a [$ty]> for $name {
|
||||
#[inline]
|
||||
fn from(slice: &'a [$ty]) -> $name {
|
||||
// TODO if this was written in JS it could avoid passing the `view` TypedArray to Rust,
|
||||
// which would be more efficient
|
||||
|
||||
// TODO measure if it's faster to use `slice` instead of `new`
|
||||
|
||||
// This is safe because the `new` function makes a copy if its argument is a TypedArray
|
||||
unsafe { $name::new(&$name::view(slice)) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user