chore: remove dirs crate and reduce tracing features
This commit is contained in:
parent
54520b0a55
commit
702ea3ed5c
2 changed files with 4 additions and 4 deletions
|
|
@ -12,11 +12,10 @@ keywords = ["icons", "gui", "freedesktop"]
|
|||
[dependencies]
|
||||
bstr = "1.12.1"
|
||||
btoi = "0.5.0"
|
||||
dirs = "6.0"
|
||||
memchr = "2.7.6"
|
||||
memmap2 = "0.9"
|
||||
thiserror = "2.0"
|
||||
tracing = "0.1.41"
|
||||
tracing = { version = "0.1.41", no-default-features = true }
|
||||
xdg = "3.0"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use dirs::home_dir;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::LazyLock;
|
||||
use xdg::BaseDirectories;
|
||||
|
|
@ -20,7 +19,9 @@ fn icon_theme_base_paths() -> Vec<PathBuf> {
|
|||
.into_iter()
|
||||
.flat_map(|data_home| [data_home.join("icons"), data_home.join("pixmaps")].into_iter());
|
||||
|
||||
let home_dir = home_dir().into_iter().map(|home| home.join(".icons"));
|
||||
let home_dir = std::env::home_dir()
|
||||
.into_iter()
|
||||
.map(|home| home.join(".icons"));
|
||||
|
||||
data_dirs
|
||||
.chain(data_home_dirs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue