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 @@ -5,12 +5,11 @@ use core::marker::PhantomData;
5
5
use core:: mem;
6
6
use core:: pin:: Pin ;
7
7
use core:: sync:: atomic:: { AtomicBool , Ordering } ;
8
- use core:: task:: { Context , Poll } ;
8
+ use core:: task:: { Context , Poll , Waker } ;
9
9
use std:: sync:: RwLock ;
10
10
11
11
use flume:: TryRecvError ;
12
12
use futures_core:: future:: BoxFuture ;
13
- use futures_task:: noop_waker_ref;
14
13
use sync_wrapper:: SyncWrapper ;
15
14
16
15
use all_is_cubes:: arcstr:: { self , ArcStr } ;
@@ -420,7 +419,7 @@ impl<I: time::Instant> Session<I> {
420
419
421
420
let future: Pin < & mut dyn Future < Output = ExitMainTask > > =
422
421
sync_wrapped_future. get_mut ( ) . as_mut ( ) ;
423
- match future. poll ( & mut Context :: from_waker ( noop_waker_ref ( ) ) ) {
422
+ match future. poll ( & mut Context :: from_waker ( Waker :: noop ( ) ) ) {
424
423
Poll :: Pending => { }
425
424
Poll :: Ready ( ExitMainTask ) => {
426
425
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