From 95f7abff90edc14c8c3835b66e00476ec1805944 Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Mon, 14 Jun 2021 15:16:15 -0700 Subject: [PATCH] Fix unused extern crate warning with certain build flags. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 0c32c7f58..dac1a0675 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,6 +88,7 @@ compile_error!("at least one socket needs to be enabled"); */ #![allow(clippy::option_map_unit_fn)] #![allow(clippy::unit_arg)] +#[cfg(any(feature = "std", feature = "alloc"))] extern crate alloc; #[cfg(not(any(feature = "proto-ipv4", feature = "proto-ipv6")))]