Skip to content

Commit

Permalink
Move to the smaller, cargo-team maintained home crate (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshgupta137 committed Apr 25, 2023
1 parent aa06a10 commit 7eb4569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -20,7 +20,7 @@ circle-ci = { repository = "Stebalien/term" }
appveyor = { repository = "Stebalien/term" }

[dependencies]
dirs-next = "2"
home = "0.5.4"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["consoleapi", "wincon", "handleapi", "fileapi"] }
Expand Down
4 changes: 1 addition & 3 deletions src/terminfo/searcher.rs
Expand Up @@ -16,8 +16,6 @@ use std::env;
use std::fs;
use std::path::PathBuf;

use dirs_next as dirs;

/// Return path to database entry for `term`
pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> {
let mut dirs_to_search = Vec::new();
Expand Down Expand Up @@ -58,7 +56,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> {
// ~/.terminfo, ncurses will search /etc/terminfo, then
// /lib/terminfo, and eventually /usr/share/terminfo.
// On Haiku the database can be found at /boot/system/data/terminfo
if let Some(mut homedir) = dirs::home_dir() {
if let Some(mut homedir) = home::home_dir() {
homedir.push(".terminfo");
dirs_to_search.push(homedir)
}
Expand Down

0 comments on commit 7eb4569

Please sign in to comment.