Skip to content

Commit

Permalink
allow redundant alloc import warnings due to new alloc prelude in n…
Browse files Browse the repository at this point in the history
…ightly
  • Loading branch information
starkat99 committed Feb 25, 2024
1 parent dd181b7 commit c2a254d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bfloat.rs
@@ -1,4 +1,5 @@
#[cfg(all(feature = "serde", feature = "alloc"))]
#[allow(unused_imports)]
use alloc::string::ToString;
#[cfg(feature = "bytemuck")]
use bytemuck::{Pod, Zeroable};
Expand Down
1 change: 1 addition & 0 deletions src/binary16.rs
@@ -1,4 +1,5 @@
#[cfg(all(feature = "serde", feature = "alloc"))]
#[allow(unused_imports)]
use alloc::string::ToString;
#[cfg(feature = "bytemuck")]
use bytemuck::{Pod, Zeroable};
Expand Down
1 change: 1 addition & 0 deletions src/slice.rs
Expand Up @@ -9,6 +9,7 @@

use crate::{bf16, binary16::arch, f16};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::vec::Vec;
use core::slice;

Expand Down
1 change: 1 addition & 0 deletions src/vec.rs
Expand Up @@ -11,6 +11,7 @@

use super::{bf16, f16, slice::HalfFloatSliceExt};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::vec::Vec;
use core::mem;

Expand Down

0 comments on commit c2a254d

Please sign in to comment.