File tree 2 files changed +3
-8
lines changed
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"); */
88
88
#![ allow( clippy:: option_map_unit_fn) ]
89
89
#![ allow( clippy:: unit_arg) ]
90
90
91
- #[ cfg( feature = "alloc" ) ]
91
+ #[ cfg( any ( feature = "std" , feature = " alloc") ) ]
92
92
extern crate alloc;
93
93
94
94
#[ 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" ) ]
6
1
use alloc:: vec:: Vec ;
7
- #[ cfg( all ( feature = "alloc" , not( feature = "rust-1_28" ) ) ) ]
2
+ #[ cfg( not( feature = "rust-1_28" ) ) ]
8
3
use alloc:: collections:: VecDeque ;
9
- #[ cfg( all ( feature = "alloc" , feature = " rust-1_28") ) ]
4
+ #[ cfg( feature = "rust-1_28" ) ]
10
5
use alloc:: VecDeque ;
11
6
12
7
use crate :: Result ;
You can’t perform that action at this time.
0 commit comments