From 04811c674ba01a0f68d9842c33816b78fe3253ab Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 16 May 2023 07:41:20 +0300 Subject: Update xdg and dirs crate The recent version on xdg crate moved to home crate which is used by cargo. Thus to query for home directory we can use the home dependency instead which is smaller. --- alacritty_terminal/src/tty/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs index c537c8d6..b4c5fae0 100644 --- a/alacritty_terminal/src/tty/mod.rs +++ b/alacritty_terminal/src/tty/mod.rs @@ -98,7 +98,7 @@ fn terminfo_exists(terminfo: &str) -> bool { if let Some(dir) = env::var_os("TERMINFO") { check_path!(PathBuf::from(&dir)); - } else if let Some(home) = dirs::home_dir() { + } else if let Some(home) = home::home_dir() { check_path!(home.join(".terminfo")); } -- cgit