1 2 3 4 5 6 7 8 9 10 11 12
#[tokio::main] async fn main() { match lib::run().await { Ok(messages) => { messages.iter().for_each(|message| println!("{message}")); } Err(e) => { eprintln!("Sorry, but the following error has occurred: \n\t{e}"); std::process::exit(1); } } }