Skip to content

Commit 79835e4

Browse files
committed
some vertical space for visual clarity
1 parent 0025710 commit 79835e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qmetaobject/src/future.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ cpp! {{
3939
bool woken = false;
4040
bool completed = false;
4141
QAtomicInt refs = 0;
42+
4243
void customEvent(QEvent *e) override {
4344
Q_UNUSED(e);
4445
woken = false;
@@ -56,18 +57,21 @@ cpp! {{
5657
deref();
5758
}
5859
}
60+
5961
void deref() {
6062
if (!--refs) {
6163
deleteLater();
6264
}
6365
}
66+
6467
void wake() {
6568
if (woken) {
6669
return;
6770
}
6871
woken = true;
6972
QApplication::postEvent(this, new QEvent(QEvent::User));
7073
}
74+
7175
~Waker() {
7276
rust!(QtDestroyFuture [future: *mut dyn Future<Output=()> as "TraitObject"] {
7377
std::mem::drop(Box::from_raw(future))

0 commit comments

Comments
 (0)