Skip to content

Commit b604f56

Browse files
committed
extern crate alloc was added accidentally breaking downstream no_std
1 parent 30966f3 commit b604f56

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/phy/fuzz_injector.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
extern crate alloc;
2-
use alloc::vec::Vec;
3-
41
use crate::phy::{self, Device, DeviceCapabilities};
52
use crate::time::Instant;
3+
use alloc::vec::Vec;
64

75
// This could be fixed once associated consts are stable.
86
const MTU: usize = 1536;

src/phy/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ use crate::time::Instant;
9797
mod sys;
9898

9999
mod fault_injector;
100+
#[cfg(feature = "alloc")]
100101
mod fuzz_injector;
101102
#[cfg(feature = "alloc")]
102103
mod loopback;

0 commit comments

Comments
 (0)