@@ -11,14 +11,14 @@ use {
11
11
sink:: Sink ,
12
12
task:: { Waker , Poll } ,
13
13
} ,
14
- futures_test:: task:: noop_local_waker_ref ,
14
+ futures_test:: task:: noop_waker_ref ,
15
15
std:: pin:: Pin ,
16
16
} ;
17
17
18
18
/// Single producer, single consumer
19
19
#[ bench]
20
20
fn unbounded_1_tx ( b : & mut Bencher ) {
21
- let waker = noop_local_waker_ref ( ) ;
21
+ let waker = noop_waker_ref ( ) ;
22
22
b. iter ( || {
23
23
let ( tx, mut rx) = mpsc:: unbounded ( ) ;
24
24
@@ -40,7 +40,7 @@ fn unbounded_1_tx(b: &mut Bencher) {
40
40
/// 100 producers, single consumer
41
41
#[ bench]
42
42
fn unbounded_100_tx ( b : & mut Bencher ) {
43
- let waker = noop_local_waker_ref ( ) ;
43
+ let waker = noop_waker_ref ( ) ;
44
44
b. iter ( || {
45
45
let ( tx, mut rx) = mpsc:: unbounded ( ) ;
46
46
@@ -61,7 +61,7 @@ fn unbounded_100_tx(b: &mut Bencher) {
61
61
62
62
#[ bench]
63
63
fn unbounded_uncontended ( b : & mut Bencher ) {
64
- let waker = noop_local_waker_ref ( ) ;
64
+ let waker = noop_waker_ref ( ) ;
65
65
b. iter ( || {
66
66
let ( tx, mut rx) = mpsc:: unbounded ( ) ;
67
67
@@ -101,7 +101,7 @@ impl Stream for TestSender {
101
101
/// Single producers, single consumer
102
102
#[ bench]
103
103
fn bounded_1_tx ( b : & mut Bencher ) {
104
- let waker = noop_local_waker_ref ( ) ;
104
+ let waker = noop_waker_ref ( ) ;
105
105
b. iter ( || {
106
106
let ( tx, mut rx) = mpsc:: channel ( 0 ) ;
107
107
@@ -118,7 +118,7 @@ fn bounded_1_tx(b: &mut Bencher) {
118
118
/// 100 producers, single consumer
119
119
#[ bench]
120
120
fn bounded_100_tx ( b : & mut Bencher ) {
121
- let waker = noop_local_waker_ref ( ) ;
121
+ let waker = noop_waker_ref ( ) ;
122
122
b. iter ( || {
123
123
// Each sender can send one item after specified capacity
124
124
let ( tx, mut rx) = mpsc:: channel ( 0 ) ;
0 commit comments