Skip to content

Commit 0bccd51

Browse files
ehussgitbot
authored and
gitbot
committed
test: Apply deprecated_safe_2024
1 parent 70838db commit 0bccd51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/src/term/terminfo/searcher/tests.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ fn test_get_dbpath_for_term() {
1111
}
1212
assert_eq!(x("screen"), PathBuf::from("/usr/share/terminfo/s/screen"));
1313
assert_eq!(get_dbpath_for_term(""), None);
14-
env::set_var("TERMINFO_DIRS", ":");
14+
unsafe {
15+
env::set_var("TERMINFO_DIRS", ":");
16+
}
1517
assert_eq!(x("screen"), PathBuf::from("/usr/share/terminfo/s/screen"));
16-
env::remove_var("TERMINFO_DIRS");
18+
unsafe {
19+
env::remove_var("TERMINFO_DIRS");
20+
}
1721
}

0 commit comments

Comments
 (0)