File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -764,7 +764,7 @@ macro_rules! crossbeam_channel_internal {
764
764
let _handle: & $crate:: internal:: SelectHandle = & $crate:: never:: <( ) >( ) ;
765
765
766
766
#[ allow( unused_mut) ]
767
- let mut _sel = [ ( _handle, 0 , 0 as * const u8 ) ; _LEN] ;
767
+ let mut _sel = [ ( _handle, 0 , :: std :: ptr :: null ( ) ) ; _LEN] ;
768
768
769
769
crossbeam_channel_internal!(
770
770
@add
@@ -858,7 +858,7 @@ macro_rules! crossbeam_channel_internal {
858
858
859
859
match _oper {
860
860
None => {
861
- :: std :: mem :: drop ( $sel) ;
861
+ { $sel } ;
862
862
$body
863
863
}
864
864
Some ( _oper) => {
@@ -889,7 +889,7 @@ macro_rules! crossbeam_channel_internal {
889
889
890
890
match _oper {
891
891
:: std:: option:: Option :: None => {
892
- :: std :: mem :: drop ( $sel) ;
892
+ { $sel } ;
893
893
$body
894
894
}
895
895
:: std:: option:: Option :: Some ( _oper) => {
@@ -987,7 +987,7 @@ macro_rules! crossbeam_channel_internal {
987
987
) => { {
988
988
if $oper. index( ) == $i {
989
989
let _res = $oper. recv( $r) ;
990
- :: std :: mem :: drop ( $sel) ;
990
+ { $sel } ;
991
991
992
992
let $res = _res;
993
993
$body
@@ -1008,7 +1008,7 @@ macro_rules! crossbeam_channel_internal {
1008
1008
) => { {
1009
1009
if $oper. index( ) == $i {
1010
1010
let _res = $oper. send( $s, $m) ;
1011
- :: std :: mem :: drop ( $sel) ;
1011
+ { $sel } ;
1012
1012
1013
1013
let $res = _res;
1014
1014
$body
You can’t perform that action at this time.
0 commit comments