Skip to content

Commit 497c5ed

Browse files
committed
Removing TODOs
1 parent b9fd30b commit 497c5ed

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/js-sys/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4593,11 +4593,6 @@ macro_rules! arrays {
45934593
impl<'a> From<&'a [$ty]> for $name {
45944594
#[inline]
45954595
fn from(slice: &'a [$ty]) -> $name {
4596-
// TODO if this was written in JS it could avoid passing the `view` TypedArray to Rust,
4597-
// which would be more efficient
4598-
4599-
// TODO measure if it's faster to use `slice` instead of `new`
4600-
46014596
// This is safe because the `new` function makes a copy if its argument is a TypedArray
46024597
unsafe { $name::new(&$name::view(slice)) }
46034598
}

0 commit comments

Comments
 (0)