smol bot
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index fed3c1d..b5999a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,12 @@ -#![feature(let_chains, iter_intersperse, if_let_guard, const_mut_refs)] +#![feature( + let_chains, + lazy_cell_consume, + iter_intersperse, + if_let_guard, + const_mut_refs, + backtrace_frames +)] +emojib::the_crate! {} use std::{net::SocketAddr, sync::OnceLock, time::Instant}; mod expose; @@ -7,7 +15,7 @@ mod bot; static START: OnceLock<Instant> = OnceLock::new(); #[tokio::main(flavor = "current_thread")] async fn main() { - START.get_or_init(|| Instant::now()); + START.get_or_init(Instant::now); expose::Server::spawn(<SocketAddr as std::str::FromStr>::from_str("0.0.0.0:2000").unwrap()) .await; bot::Bot::spawn().await; |