Skip to content

Commit

Permalink
test: Apply deprecated_safe_2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Feb 13, 2025
1 parent 1020946 commit bcdcf7a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions library/test/src/term/terminfo/searcher/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ fn test_get_dbpath_for_term() {
}
assert_eq!(x("screen"), PathBuf::from("/usr/share/terminfo/s/screen"));
assert_eq!(get_dbpath_for_term(""), None);
env::set_var("TERMINFO_DIRS", ":");
unsafe {
env::set_var("TERMINFO_DIRS", ":");
}
assert_eq!(x("screen"), PathBuf::from("/usr/share/terminfo/s/screen"));
env::remove_var("TERMINFO_DIRS");
unsafe {
env::remove_var("TERMINFO_DIRS");
}
}

0 comments on commit bcdcf7a

Please sign in to comment.