| 1 |
--- a/src/idct.rs |
| 2 |
+++ b/src/idct.rs |
| 3 |
@@ -108,6 +108,8 @@ |
| 4 |
#[allow(dead_code)] |
| 5 |
mod tests { |
| 6 |
use super::*; |
| 7 |
+ use alloc::vec::Vec; |
| 8 |
+ use alloc::vec; |
| 9 |
|
| 10 |
#[test] |
| 11 |
fn idct_test0() { |
| 12 |
--- a/src/upsampler.rs |
| 13 |
+++ b/src/upsampler.rs |
| 14 |
@@ -178,6 +178,8 @@ |
| 15 |
#[cfg(test)] |
| 16 |
mod tests { |
| 17 |
use super::*; |
| 18 |
+ use alloc::vec::Vec; |
| 19 |
+ use alloc::vec; |
| 20 |
|
| 21 |
#[cfg(feature = "portable_simd")] |
| 22 |
mod portable_simd_impl { |
| 23 |
--- a/src/upsampler/portable_simd.rs |
| 24 |
+++ b/src/upsampler/portable_simd.rs |
| 25 |
@@ -6,7 +6,7 @@ |
| 26 |
* You can redistribute it or modify it under terms of the MIT, Apache License or Zlib license |
| 27 |
*/ |
| 28 |
|
| 29 |
-use std::simd::prelude::*; |
| 30 |
+use core::simd::prelude::*; |
| 31 |
|
| 32 |
const LANES: usize = 16; |
| 33 |
type V = Simd<i16, LANES>; |