Skip to content

Commit da236ae

Browse files
more deprecation fixes
1 parent 36366cd commit da236ae

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/sync/channel.rs

+15
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use crate::sync::WakerSet;
3434
/// # Examples
3535
///
3636
/// ```
37+
/// #![allow(deprecated)]
3738
/// # fn main() -> Result<(), async_std::sync::RecvError> {
3839
/// # async_std::task::block_on(async {
3940
/// #
@@ -85,6 +86,7 @@ pub fn channel<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
8586
/// # Examples
8687
///
8788
/// ```
89+
/// #![allow(deprecated)]
8890
/// # async_std::task::block_on(async {
8991
/// #
9092
/// use async_std::sync::channel;
@@ -119,6 +121,7 @@ impl<T> Sender<T> {
119121
/// # Examples
120122
///
121123
/// ```
124+
/// #![allow(deprecated)]
122125
/// # fn main() -> Result<(), async_std::sync::RecvError> {
123126
/// # async_std::task::block_on(async {
124127
/// #
@@ -208,6 +211,7 @@ impl<T> Sender<T> {
208211
/// # Examples
209212
///
210213
/// ```
214+
/// #![allow(deprecated)]
211215
/// # async_std::task::block_on(async {
212216
/// #
213217
/// use async_std::sync::channel;
@@ -227,6 +231,7 @@ impl<T> Sender<T> {
227231
/// # Examples
228232
///
229233
/// ```
234+
/// #![allow(deprecated)]
230235
/// use async_std::sync::channel;
231236
///
232237
/// let (s, _) = channel::<i32>(5);
@@ -241,6 +246,7 @@ impl<T> Sender<T> {
241246
/// # Examples
242247
///
243248
/// ```
249+
/// #![allow(deprecated)]
244250
/// # async_std::task::block_on(async {
245251
/// #
246252
/// use async_std::sync::channel;
@@ -262,6 +268,7 @@ impl<T> Sender<T> {
262268
/// # Examples
263269
///
264270
/// ```
271+
/// #![allow(deprecated)]
265272
/// # async_std::task::block_on(async {
266273
/// #
267274
/// use async_std::sync::channel;
@@ -283,6 +290,7 @@ impl<T> Sender<T> {
283290
/// # Examples
284291
///
285292
/// ```
293+
/// #![allow(deprecated)]
286294
/// # async_std::task::block_on(async {
287295
/// #
288296
/// use async_std::sync::channel;
@@ -343,6 +351,7 @@ impl<T> fmt::Debug for Sender<T> {
343351
/// # Examples
344352
///
345353
/// ```
354+
/// #![allow(deprecated)]
346355
/// # fn main() -> Result<(), async_std::sync::RecvError> {
347356
/// # async_std::task::block_on(async {
348357
/// #
@@ -386,6 +395,7 @@ impl<T> Receiver<T> {
386395
/// # Examples
387396
///
388397
/// ```
398+
/// #![allow(deprecated)]
389399
/// # fn main() -> Result<(), async_std::sync::RecvError> {
390400
/// # async_std::task::block_on(async {
391401
/// #
@@ -449,6 +459,7 @@ impl<T> Receiver<T> {
449459
/// # Examples
450460
///
451461
/// ```
462+
/// #![allow(deprecated)]
452463
/// # async_std::task::block_on(async {
453464
/// #
454465
/// use async_std::sync::channel;
@@ -471,6 +482,7 @@ impl<T> Receiver<T> {
471482
/// # Examples
472483
///
473484
/// ```
485+
/// #![allow(deprecated)]
474486
/// use async_std::sync::channel;
475487
///
476488
/// let (_, r) = channel::<i32>(5);
@@ -485,6 +497,7 @@ impl<T> Receiver<T> {
485497
/// # Examples
486498
///
487499
/// ```
500+
/// #![allow(deprecated)]
488501
/// # async_std::task::block_on(async {
489502
/// #
490503
/// use async_std::sync::channel;
@@ -506,6 +519,7 @@ impl<T> Receiver<T> {
506519
/// # Examples
507520
///
508521
/// ```
522+
/// #![allow(deprecated)]
509523
/// # async_std::task::block_on(async {
510524
/// #
511525
/// use async_std::sync::channel;
@@ -527,6 +541,7 @@ impl<T> Receiver<T> {
527541
/// # Examples
528542
///
529543
/// ```
544+
/// #![allow(deprecated)]
530545
/// # async_std::task::block_on(async {
531546
/// #
532547
/// use async_std::sync::channel;

0 commit comments

Comments
 (0)