File tree Expand file tree Collapse file tree 9 files changed +9
-0
lines changed Expand file tree Collapse file tree 9 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ impl Emulator {
180
180
}
181
181
182
182
/// A future that executes a future until the emulator closes.
183
+ #[ must_use = "You need to await this future." ]
183
184
pub struct UntilEmulatorCloses < ' a , F > {
184
185
emulator : & ' a Emulator ,
185
186
future : F ,
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ impl Emulator {
150
150
}
151
151
152
152
/// A future that executes a future until the emulator closes.
153
+ #[ must_use = "You need to await this future." ]
153
154
pub struct UntilEmulatorCloses < ' a , F > {
154
155
emulator : & ' a Emulator ,
155
156
future : F ,
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ impl Emulator {
166
166
}
167
167
168
168
/// A future that executes a future until the emulator closes.
169
+ #[ must_use = "You need to await this future." ]
169
170
pub struct UntilEmulatorCloses < ' a , F > {
170
171
emulator : & ' a Emulator ,
171
172
future : F ,
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ impl Emulator {
151
151
}
152
152
153
153
/// A future that executes a future until the emulator closes.
154
+ #[ must_use = "You need to await this future." ]
154
155
pub struct UntilEmulatorCloses < ' a , F > {
155
156
emulator : & ' a Emulator ,
156
157
future : F ,
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ impl Emulator {
146
146
}
147
147
148
148
/// A future that executes a future until the emulator closes.
149
+ #[ must_use = "You need to await this future." ]
149
150
pub struct UntilEmulatorCloses < ' a , F > {
150
151
emulator : & ' a Emulator ,
151
152
future : F ,
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ impl Emulator {
130
130
}
131
131
132
132
/// A future that executes a future until the emulator closes.
133
+ #[ must_use = "You need to await this future." ]
133
134
pub struct UntilEmulatorCloses < ' a , F > {
134
135
emulator : & ' a Emulator ,
135
136
future : F ,
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ impl Emulator {
231
231
}
232
232
233
233
/// A future that executes a future until the emulator closes.
234
+ #[ must_use = "You need to await this future." ]
234
235
pub struct UntilEmulatorCloses < ' a , F > {
235
236
emulator : & ' a Emulator ,
236
237
future : F ,
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ impl<const N: usize> Signature<N> {
271
271
}
272
272
273
273
/// A future that executes a future until the process closes.
274
+ #[ must_use = "You need to await this future." ]
274
275
pub struct UntilProcessCloses < ' a , F > {
275
276
process : & ' a Process ,
276
277
future : F ,
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ pub fn sleep(duration: Duration) -> Sleep {
115
115
/// // the future timed out
116
116
/// }
117
117
/// ```
118
+ #[ must_use = "You need to await this future." ]
118
119
pub struct Timeout < F > {
119
120
sleep : Sleep ,
120
121
future : F ,
You can’t perform that action at this time.
0 commit comments