From 608f8cd594433e26179fafd587a3b0138b4afcdb Mon Sep 17 00:00:00 2001 From: Stephane Raux Date: Tue, 20 Oct 2020 17:54:06 -0700 Subject: [PATCH] Make crate feature alloc work with stable Rust `println!` was removed in the test as the corresponding test for `u32` does not have it. --- src/backend/serial/u64/scalar.rs | 1 - src/lib.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/backend/serial/u64/scalar.rs b/src/backend/serial/u64/scalar.rs index 97069ad..cee69da 100644 --- a/src/backend/serial/u64/scalar.rs +++ b/src/backend/serial/u64/scalar.rs @@ -443,7 +443,6 @@ mod test { fn from_bytes_wide() { let bignum = [255u8; 64]; // 2^512 - 1 let reduced = Scalar52::from_bytes_wide(&bignum); - println!("{:?}", reduced); for i in 0..5 { assert!(reduced[i] == C[i]); } diff --git a/src/lib.rs b/src/lib.rs index 3d68c58..179e70a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,6 @@ #![no_std] #![cfg_attr(feature = "nightly", feature(test))] -#![cfg_attr(all(feature = "alloc", not(feature = "std")), feature(alloc))] #![cfg_attr(feature = "nightly", feature(external_doc))] #![cfg_attr(feature = "nightly", feature(doc_cfg))] #![cfg_attr(feature = "simd_backend", feature(stdsimd))]