File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,7 @@ impl TcpListener {
729
729
/// ```
730
730
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
731
731
pub fn accept ( & self ) -> io:: Result < ( TcpStream , SocketAddr ) > {
732
+ #[ allow( unused_variables) ] // `TcpStream` is uninhabited on some platforms.
732
733
self . 0 . accept ( ) . map ( |( a, b) | ( TcpStream ( a) , b) )
733
734
}
734
735
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ impl<K: EnvKey> CommandEnv<K> {
66
66
pub fn capture ( & self ) -> BTreeMap < K , OsString > {
67
67
let mut result = BTreeMap :: < K , OsString > :: new ( ) ;
68
68
if !self . clear {
69
+ #[ allow( unused_mut) ] // `Env` is uninhabited on some platforms.
69
70
for ( k, v) in env:: vars_os ( ) {
70
71
result. insert ( k. into ( ) , v) ;
71
72
}
@@ -83,6 +84,7 @@ impl<K: EnvKey> CommandEnv<K> {
83
84
// Apply these changes directly to the current environment
84
85
pub fn apply ( & self ) {
85
86
if self . clear {
87
+ #[ allow( unused_mut) ] // `Env` is uninhabited on some platforms.
86
88
for ( k, _) in env:: vars_os ( ) {
87
89
env:: remove_var ( k) ;
88
90
}
You can’t perform that action at this time.
0 commit comments