Skip to content

Commit

Permalink
Merge pull request #496 from gz/patch-1
Browse files Browse the repository at this point in the history
Update loopback.rs
  • Loading branch information
Dirbaio authored Jun 14, 2021
2 parents 68b3fb4 + 95f7abf commit 027f255
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ compile_error!("at least one socket needs to be enabled"); */
#![allow(clippy::option_map_unit_fn)]
#![allow(clippy::unit_arg)]

#[cfg(feature = "alloc")]
#[cfg(any(feature = "std", feature = "alloc"))]
extern crate alloc;

#[cfg(not(any(feature = "proto-ipv4", feature = "proto-ipv6")))]
Expand Down
9 changes: 2 additions & 7 deletions src/phy/loopback.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#[cfg(feature = "std")]
use std::vec::Vec;
#[cfg(feature = "std")]
use std::collections::VecDeque;
#[cfg(feature = "alloc")]
use alloc::vec::Vec;
#[cfg(all(feature = "alloc", not(feature = "rust-1_28")))]
#[cfg(not(feature = "rust-1_28"))]
use alloc::collections::VecDeque;
#[cfg(all(feature = "alloc", feature = "rust-1_28"))]
#[cfg(feature = "rust-1_28")]
use alloc::VecDeque;

use crate::Result;
Expand Down

0 comments on commit 027f255

Please sign in to comment.