From 769b9578fe435fa5372a6272895ff20fe1f4e150 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 12 Oct 2024 11:34:44 +0200 Subject: [PATCH] refactor: do not import xdg --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 225a0e9..6e82773 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,6 @@ use tokio::sync::mpsc; use tokio::sync::mpsc::Sender; use tokio::time::error::Elapsed; use tokio::time::timeout; -use xdg::BaseDirectories; use crate::helpers::*; use crate::kinds::{BASIC_KINDS, PROPERTY_COLUMNS, PROP_KINDS, TRACKING_KIND}; @@ -169,7 +168,7 @@ async fn main() -> Result<()> { ); builder.init(); - let config_dir = or_warn!(BaseDirectories::new(), "Could not determine config directory") + let config_dir = or_warn!(xdg::BaseDirectories::new(), "Could not determine config directory") .and_then(|d| or_warn!(d.create_config_directory("mostr"), "Could not create config directory")) .unwrap_or(PathBuf::new()); let keysfile = config_dir.join("key");