Skip to content

Commit 95f7abf

Browse files
committed
Fix unused extern crate warning with certain build flags.
1 parent e36fabc commit 95f7abf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ compile_error!("at least one socket needs to be enabled"); */
8888
#![allow(clippy::option_map_unit_fn)]
8989
#![allow(clippy::unit_arg)]
9090

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

9394
#[cfg(not(any(feature = "proto-ipv4", feature = "proto-ipv6")))]

0 commit comments

Comments
 (0)