Merge pull request #496 from gz/patch-1

Update loopback.rs
This commit is contained in:
Dario Nieuwenhuis 2021-06-15 00:41:48 +02:00 committed by GitHub
commit 07449fd995
2 changed files with 3 additions and 8 deletions

View File

@ -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")))]

View File

@ -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;