Skip to content

Commit e649b66

Browse files
committed
Fix unused borrow warning
1 parent ad763b2 commit e649b66

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ macro_rules! schedule {
6464

6565
let guard = Guard(Box::new(0));
6666
move |_runnable| {
67-
&guard;
67+
let _ = &guard;
6868
$sched.fetch_add(1, Ordering::SeqCst);
6969
}
7070
};

tests/cancel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ macro_rules! schedule {
8181

8282
let guard = Guard(Box::new(0));
8383
move |runnable: Runnable| {
84-
&guard;
84+
let _ = &guard;
8585
runnable.schedule();
8686
$sched.fetch_add(1, Ordering::SeqCst);
8787
}

tests/join.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ macro_rules! schedule {
8282

8383
let guard = Guard(Box::new(0));
8484
move |runnable: Runnable| {
85-
&guard;
85+
let _ = &guard;
8686
runnable.schedule();
8787
$sched.fetch_add(1, Ordering::SeqCst);
8888
}

tests/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ macro_rules! schedule {
6969

7070
let guard = Guard(Box::new(0));
7171
move |_runnable: Runnable| {
72-
&guard;
72+
let _ = &guard;
7373
$sched.fetch_add(1, Ordering::SeqCst);
7474
}
7575
};

tests/ready.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ macro_rules! schedule {
8181

8282
let guard = Guard(Box::new(0));
8383
move |_runnable: Runnable| {
84-
&guard;
84+
let _ = &guard;
8585
$sched.fetch_add(1, Ordering::SeqCst);
8686
}
8787
};

tests/waker_panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ macro_rules! schedule {
8686

8787
let guard = Guard(Box::new(0));
8888
let sched = move |runnable: Runnable| {
89-
&guard;
89+
let _ = &guard;
9090
$sched.fetch_add(1, Ordering::SeqCst);
9191
s.send(runnable).unwrap();
9292
};

tests/waker_pending.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ macro_rules! schedule {
7777

7878
let guard = Guard(Box::new(0));
7979
let sched = move |runnable: Runnable| {
80-
&guard;
80+
let _ = &guard;
8181
$sched.fetch_add(1, Ordering::SeqCst);
8282
s.send(runnable).unwrap();
8383
};

tests/waker_ready.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ macro_rules! schedule {
8383

8484
let guard = Guard(Box::new(0));
8585
let sched = move |runnable: Runnable| {
86-
&guard;
86+
let _ = &guard;
8787
$sched.fetch_add(1, Ordering::SeqCst);
8888
s.send(runnable).unwrap();
8989
};

0 commit comments

Comments
 (0)