From fcb7bb0025903bb19f66607ba5bb31752c8ea830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 19 Feb 2021 09:50:38 +0100 Subject: [PATCH] dsp: fix nightly --- dsp/src/lib.rs | 1 + dsp/src/tools.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dsp/src/lib.rs b/dsp/src/lib.rs index 581f585..ac91124 100644 --- a/dsp/src/lib.rs +++ b/dsp/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(test), no_std)] +#![cfg_attr(feature = "nightly", feature(asm, core_intrinsics))] mod tools; pub use tools::*; diff --git a/dsp/src/tools.rs b/dsp/src/tools.rs index 45dd66f..378734f 100644 --- a/dsp/src/tools.rs +++ b/dsp/src/tools.rs @@ -1,5 +1,3 @@ -#![cfg_attr(feature = "nightly", feature(asm, core_intrinsics))] - use core::ops::{Add, Mul, Neg}; pub fn abs(x: T) -> T