forked from Roflin/gamenight
Rewrite to a API trait.
This commit is contained in:
@@ -6,9 +6,9 @@ use flows::{main::Main, Flow, GamenightState};
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let mut state = GamenightState::new();
|
||||
let mainflow = Main::new();
|
||||
let main_flow = Main::new();
|
||||
clear_screen::clear();
|
||||
if let Err(x) = mainflow.run(&mut state).await {
|
||||
if let Err(x) = main_flow.run(&mut state).await {
|
||||
println!("{}", x.error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user