@@ -5,7 +5,6 @@ use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
5
5
6
6
use crate :: connections:: SignalArgArrayToTuple ;
7
7
8
-
9
8
static QT_WAKER_VTABLE : RawWakerVTable = RawWakerVTable :: new (
10
9
|s : * const ( ) | {
11
10
RawWaker :: new (
@@ -63,7 +62,7 @@ cpp! {{
63
62
}
64
63
completed = rust!( ProcessQtEvent [
65
64
this: * const ( ) as "Waker *" ,
66
- future: * mut dyn Future <Output = ( ) > as "TraitObject"
65
+ future: * mut dyn Future <Output = ( ) > as "TraitObject"
67
66
] -> bool as "bool" {
68
67
poll_with_qt_waker( this, Pin :: new_unchecked( & mut * future) )
69
68
} ) ;
@@ -90,7 +89,7 @@ cpp! {{
90
89
}
91
90
92
91
~Waker ( ) {
93
- rust!( QtDestroyFuture [ future: * mut dyn Future <Output = ( ) > as "TraitObject" ] {
92
+ rust!( QtDestroyFuture [ future: * mut dyn Future <Output = ( ) > as "TraitObject" ] {
94
93
std:: mem:: drop( Box :: from_raw( future) )
95
94
} ) ;
96
95
}
@@ -159,10 +158,7 @@ pub unsafe fn wait_on_signal<Args: SignalArgArrayToTuple>(
159
158
160
159
impl < Args : SignalArgArrayToTuple > Future for ConnectionFuture < Args > {
161
160
type Output = <Args as SignalArgArrayToTuple >:: Tuple ;
162
- fn poll (
163
- mut self : Pin < & mut Self > ,
164
- ctx : & mut Context ,
165
- ) -> Poll < Self :: Output > {
161
+ fn poll ( mut self : Pin < & mut Self > , ctx : & mut Context ) -> Poll < Self :: Output > {
166
162
let state = & mut self . 0 ;
167
163
* state = match std:: mem:: replace ( state, ConnectionFutureState :: Invalid ) {
168
164
ConnectionFutureState :: Finished { result } => {
0 commit comments