summaryrefslogtreecommitdiffstatshomepage
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-23 12:45:14 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-23 16:08:55 +0100
commit13127e1cc843a83b00b1ee498ae07b66524d552a (patch)
treed88fc8d4f8d215c0df4e423200aa779dc3d8e3c5 /src/main.rs
parentd9031529e120dca9a5aed0a150f3bb960153d4a2 (diff)
downloadsentrum-13127e1cc843a83b00b1ee498ae07b66524d552a.tar.gz
sentrum-13127e1cc843a83b00b1ee498ae07b66524d552a.tar.bz2
sentrum-13127e1cc843a83b00b1ee498ae07b66524d552a.zip
Avoid extern crate
Causes issues with rust-analyzer
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index f4a7bde..0173eb8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,16 +1,12 @@
-extern crate pretty_env_logger;
-#[macro_use]
-extern crate log;
-
use std::process::exit;
use std::time::Duration;
use actions::Action;
+use anyhow::{bail, Context, Result};
use async_scoped::TokioScope;
use clap::Parser;
use human_panic::setup_panic;
-
-use anyhow::{bail, Context, Result};
+use log::{error, info, warn};
#[cfg(unix)]
use tokio::signal::unix::{signal, SignalKind};
use tokio::time::sleep;