Skip to content

Commit 0fe71f9

Browse files
authored
Allow deprecated heapless::mpmc to fix no_std builds (#21818)
# Objective `heapless` just deprecated their `mpmc` module in a minor version, which broke our `no_std` builds (because we choose to break our break our builds on warnings). rust-embedded/heapless#583 https://docs.rs/heapless/latest/heapless/mpmc/index.html ## Solution Short term, fix our builds by allowing this usage of a deprecated function. However it is worth investigating: #21819
1 parent 33a48a9 commit 0fe71f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/bevy_tasks/src/edge_executor.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ impl<const C: usize> State<C> {
471471
target_has_atomic = "64",
472472
target_has_atomic = "ptr"
473473
)))]
474+
#[allow(deprecated)]
474475
queue: heapless::mpmc::Queue::new(),
475476
waker: AtomicWaker::new(),
476477
}
@@ -481,7 +482,10 @@ impl<const C: usize> State<C> {
481482
mod different_executor_tests {
482483
use core::cell::Cell;
483484

484-
use bevy_tasks::{block_on, futures_lite::{pending, poll_once}};
485+
use bevy_tasks::{
486+
block_on,
487+
futures_lite::{pending, poll_once},
488+
};
485489
use futures_lite::pin;
486490

487491
use super::LocalExecutor;

0 commit comments

Comments
 (0)