File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use std:: borrow:: Cow ;
4
4
use std:: sync:: Arc ;
5
- use std:: task;
6
5
use std:: sync:: LazyLock as Lazy ;
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
@@ -161,7 +160,7 @@ impl ReloadableShader {
161
160
if let Some ( f) = self . next_module . as_mut ( ) {
162
161
if let task:: Poll :: Ready ( result) = f
163
162
. as_mut ( )
164
- . poll ( & mut task:: Context :: from_waker ( noop_waker_ref ( ) ) )
163
+ . poll ( & mut task:: Context :: from_waker ( task :: Waker :: noop ( ) ) )
165
164
{
166
165
self . next_module = None ;
167
166
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
#![ feature( precise_capturing) ]
3
4
4
5
//! User interface framework and screens for [`all_is_cubes`].
You can’t perform that action at this time.
0 commit comments