Skip to content

Commit

Permalink
chore: fix macro clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
u2 authored and Vtec234 committed Sep 15, 2019
1 parent 9c95360 commit c725403
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crossbeam-channel/src/select_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ macro_rules! crossbeam_channel_internal {
let _handle: &$crate::internal::SelectHandle = &$crate::never::<()>();

#[allow(unused_mut)]
let mut _sel = [(_handle, 0, 0 as *const u8); _LEN];
let mut _sel = [(_handle, 0, ::std::ptr::null()); _LEN];

crossbeam_channel_internal!(
@add
Expand Down Expand Up @@ -858,7 +858,7 @@ macro_rules! crossbeam_channel_internal {

match _oper {
None => {
::std::mem::drop($sel);
{ $sel };
$body
}
Some(_oper) => {
Expand Down Expand Up @@ -889,7 +889,7 @@ macro_rules! crossbeam_channel_internal {

match _oper {
::std::option::Option::None => {
::std::mem::drop($sel);
{ $sel };
$body
}
::std::option::Option::Some(_oper) => {
Expand Down Expand Up @@ -987,7 +987,7 @@ macro_rules! crossbeam_channel_internal {
) => {{
if $oper.index() == $i {
let _res = $oper.recv($r);
::std::mem::drop($sel);
{ $sel };

let $res = _res;
$body
Expand All @@ -1008,7 +1008,7 @@ macro_rules! crossbeam_channel_internal {
) => {{
if $oper.index() == $i {
let _res = $oper.send($s, $m);
::std::mem::drop($sel);
{ $sel };

let $res = _res;
$body
Expand Down

0 comments on commit c725403

Please sign in to comment.