Skip to content

Commit 59dd2b4

Browse files
authored
Refactor handler_loop to main function
1 parent b33f0f9 commit 59dd2b4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/coding-guidelines/types-and-traits/gui_QbvIknd9qNF6.rst.inc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,16 +437,12 @@
437437
}
438438
}
439439

440-
async fn handler_loop() {
440+
fn main() {
441441
let mut handlers: Vec<fn()> = Vec::new();
442442
// Handler may be registered multiple times
443443
register(&mut handlers, handler);
444444
}
445445

446-
fn main() {
447-
handler_loop().await;
448-
}
449-
450446
.. bibliography::
451447
:id: bib_UnionFieldValidity
452448
:status: draft

0 commit comments

Comments
 (0)