fix: install color_eyre error handler in main
This puts it outside of any tests, as running this in parallel will panic.
This commit is contained in:
parent
7af4dae96d
commit
6fe7be191f
2 changed files with 1 additions and 2 deletions
|
@ -96,8 +96,6 @@ impl FullCtx {
|
|||
|
||||
#[cfg_attr(test, mutants::skip)]
|
||||
pub async fn run(ctx: &Ctx) -> color_eyre::Result<()> {
|
||||
color_eyre::install()?;
|
||||
|
||||
let commands = Commands::parse();
|
||||
if commands.log {
|
||||
tracing::subscriber::set_global_default(
|
||||
|
|
|
@ -6,5 +6,6 @@ use trello_to_deck::{run, Ctx};
|
|||
#[tokio::main]
|
||||
#[cfg_attr(test, mutants::skip)]
|
||||
async fn main() -> Result<()> {
|
||||
color_eyre::install()?;
|
||||
run(&Ctx::from(std::env::current_dir()?)).await
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue