Skip to content

Commit 6bf3b19

Browse files
committed
samples: Allow deprecated calls
During the transition through deprecation of the old async code, allow references to it to remain in the samples. These can be gradually transitioned to newer solutions. Signed-off-by: David Brown <[email protected]>
1 parent 2dab6c6 commit 6bf3b19

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

samples/bench/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// uses a large number of Kconfigs and there is no easy way to know which ones might conceivably be
77
// valid. This prevents a warning about each cfg that is used.
88
#![allow(unexpected_cfgs)]
9+
// While in the process of deprecating the "kio" async code, allow the deprecation warnings.
10+
#![allow(deprecated)]
911

1012
extern crate alloc;
1113

samples/work-philosophers/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// uses a large number of Kconfigs and there is no easy way to know which ones might conceivably be
77
// valid. This prevents a warning about each cfg that is used.
88
#![allow(unexpected_cfgs)]
9+
// During the transition of deprecating 'kio' async, allow the deprecation warnings.
10+
#![allow(deprecated)]
911

1012
extern crate alloc;
1113

0 commit comments

Comments
 (0)