Use non-fancy miette hook

Cuts down our dependencies a bit. We only use miette due to knuffel so
it makes sense.
This commit is contained in:
Ivan Molodetskikh
2023-09-30 09:08:00 +04:00
parent 56cffa155b
commit 3f8788e4ed
3 changed files with 3 additions and 149 deletions
+2 -1
View File
@@ -20,7 +20,7 @@ use std::{env, mem};
use clap::Parser;
use config::Config;
use miette::Context;
use miette::{Context, NarratableReportHandler};
use niri::{Niri, State};
use portable_atomic::Ordering;
use smithay::reexports::calloop::{self, EventLoop};
@@ -54,6 +54,7 @@ fn main() {
let _client = tracy_client::Client::start();
miette::set_hook(Box::new(|_| Box::new(NarratableReportHandler::new()))).unwrap();
let (mut config, path) = match Config::load(cli.config).context("error loading config") {
Ok((config, path)) => (config, Some(path)),
Err(err) => {