File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use std::sync::LazyLock as Lazy;
6
6
use std:: task;
7
7
8
8
use futures_core:: future:: BoxFuture ;
9
- use futures_util:: task:: noop_waker_ref;
10
9
11
10
use all_is_cubes:: listen;
12
11
@@ -163,7 +162,7 @@ impl ReloadableShader {
163
162
if let Some ( f) = self . next_module . as_mut ( ) {
164
163
if let task:: Poll :: Ready ( result) = f
165
164
. as_mut ( )
166
- . poll ( & mut task:: Context :: from_waker ( noop_waker_ref ( ) ) )
165
+ . poll ( & mut task:: Context :: from_waker ( task :: Waker :: noop ( ) ) )
167
166
{
168
167
self . next_module = None ;
169
168
match result {
Original file line number Diff line number Diff line change 1
1
#![ feature( never_type) ]
2
+ #![ feature( noop_waker) ]
2
3
3
4
//! Algorithms for rendering [All is Cubes] content using a GPU, via
4
5
//! the [`wgpu`] graphics library.
Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ use core::marker::PhantomData;
12
12
use core:: mem;
13
13
use core:: pin:: Pin ;
14
14
use core:: sync:: atomic:: { AtomicBool , Ordering } ;
15
- use core:: task:: { Context , Poll } ;
15
+ use core:: task:: { Context , Poll , Waker } ;
16
16
use std:: sync:: RwLock ;
17
17
18
18
use flume:: TryRecvError ;
19
19
use futures_core:: future:: BoxFuture ;
20
- use futures_task:: noop_waker_ref;
21
20
use sync_wrapper:: SyncWrapper ;
22
21
23
22
use all_is_cubes:: arcstr:: { self , ArcStr } ;
@@ -427,7 +426,7 @@ impl<I: time::Instant> Session<I> {
427
426
428
427
let future: Pin < & mut dyn Future < Output = ExitMainTask > > =
429
428
sync_wrapped_future. get_mut ( ) . as_mut ( ) ;
430
- match future. poll ( & mut Context :: from_waker ( noop_waker_ref ( ) ) ) {
429
+ match future. poll ( & mut Context :: from_waker ( Waker :: noop ( ) ) ) {
431
430
Poll :: Pending => { }
432
431
Poll :: Ready ( ExitMainTask ) => {
433
432
self . main_task = None ;
Original file line number Diff line number Diff line change 1
1
#![ feature( never_type) ]
2
+ #![ feature( noop_waker) ]
2
3
3
4
//! User interface framework and screens for [`all_is_cubes`].
4
5
//!
You can’t perform that action at this time.
0 commit comments