1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-08 14:22:25 +01:00

Replace dirs crate with etcetera crate

This commit is contained in:
Utkarsh Gupta
2023-04-22 05:41:57 +05:30
committed by David Peter
parent 1e52785d35
commit a721cc31f3
4 changed files with 45 additions and 93 deletions

View File

@@ -404,7 +404,7 @@ fn macos_dark_mode_active() -> bool {
const PREFERENCES_FILE: &str = "Library/Preferences/.GlobalPreferences.plist";
const STYLE_KEY: &str = "AppleInterfaceStyle";
let preferences_file = dirs::home_dir()
let preferences_file = home::home_dir()
.map(|home| home.join(PREFERENCES_FILE))
.expect("Could not get home directory");