Skip to content

Commit

Permalink
main: return anyhow Result
Browse files Browse the repository at this point in the history
This was trying to fix a bogus clippy warning on nightly about useless return in
main, that didn't work but it's slightly better than unwrap? maybe?
  • Loading branch information
martinetd committed Sep 28, 2024
1 parent 145b8dd commit 8cff590
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
// recursion limit can be removed when we bump rustc requirement to 1.70
#![recursion_limit = "256"]

use anyhow::Result;

mod args;
mod ircd;
mod matrirc;
mod matrix;
mod state;

#[tokio::main]
async fn main() {
async fn main() -> Result<()> {
env_logger::init();
// ensure args parse early
let _ = args::args();

let ircd = ircd::listen().await;

ircd.await.unwrap();
ircd.await?;

Ok(())
}

0 comments on commit 8cff590

Please sign in to comment.