File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -88,7 +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( feature = "alloc" ) ]
91+ #[ cfg( any ( feature = "std" , feature = " alloc") ) ]
9292extern crate alloc;
9393
9494#[ cfg( not( any( feature = "proto-ipv4" , feature = "proto-ipv6" ) ) ) ]
Original file line number Diff line number Diff line change 1- #[ cfg( feature = "std" ) ]
2- use std:: vec:: Vec ;
3- #[ cfg( feature = "std" ) ]
4- use std:: collections:: VecDeque ;
5- #[ cfg( feature = "alloc" ) ]
61use alloc:: vec:: Vec ;
7- #[ cfg( all ( feature = "alloc" , not( feature = "rust-1_28" ) ) ) ]
2+ #[ cfg( not( feature = "rust-1_28" ) ) ]
83use alloc:: collections:: VecDeque ;
9- #[ cfg( all ( feature = "alloc" , feature = " rust-1_28") ) ]
4+ #[ cfg( feature = "rust-1_28" ) ]
105use alloc:: VecDeque ;
116
127use crate :: Result ;
You can’t perform that action at this time.
0 commit comments