File: fix-tests-no-default-features.patch

package info (click to toggle)
rust-zune-jpeg 0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 520 kB
  • sloc: makefile: 4
file content (39 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Index: zune-jpeg/src/idct.rs
===================================================================
--- zune-jpeg.orig/src/idct.rs
+++ zune-jpeg/src/idct.rs
@@ -108,6 +108,8 @@ pub fn choose_idct_1x1_func(_: &DecoderO
 #[allow(dead_code)]
 mod tests {
     use super::*;
+    use alloc::vec::Vec;
+    use alloc::vec;
 
     #[test]
     fn idct_test0() {
Index: zune-jpeg/src/upsampler.rs
===================================================================
--- zune-jpeg.orig/src/upsampler.rs
+++ zune-jpeg/src/upsampler.rs
@@ -163,6 +163,8 @@ pub fn generic_sampler() -> UpSampler {
 mod tests {
     use super::*;
     use zune_core::options::DecoderOptions;
+    use alloc::vec::Vec;
+    use alloc::vec;
 
     #[test]
     fn test_vertical_fast_vs_scalar() {
Index: zune-jpeg/src/upsampler/portable_simd.rs
===================================================================
--- zune-jpeg.orig/src/upsampler/portable_simd.rs
+++ zune-jpeg/src/upsampler/portable_simd.rs
@@ -6,7 +6,7 @@
  * You can redistribute it or modify it under terms of the MIT, Apache License or Zlib license
  */
 
-use std::simd::prelude::*;
+use core::simd::prelude::*;
 
 const LANES: usize = 16;
 type V = Simd<i16, LANES>;