mirror of
https://github.com/sharkdp/bat.git
synced 2026-02-08 08:42:08 +00:00
Update etcetera to 0.11; no longer depend on home; MSRV 1.87
Release 0.11 of `etcetera` requires MSRV 1.87, in which `std::env::home_dir` is no longer deprecated, https://github.com/rust-lang/rust/pull/137327. Update to that MSRV and to `etcetera`, and drop the dependency on the `home` crate just as `etcetera` 0.11 did.
This commit is contained in:
committed by
Martin Nordholts
parent
3ecbd18e56
commit
ce856dbba7
@@ -288,7 +288,7 @@ fn color_scheme_from_system() -> Option<ColorScheme> {
|
||||
const PREFERENCES_FILE: &str = "Library/Preferences/.GlobalPreferences.plist";
|
||||
const STYLE_KEY: &str = "AppleInterfaceStyle";
|
||||
|
||||
let preferences_file = home::home_dir()
|
||||
let preferences_file = std::env::home_dir()
|
||||
.map(|home| home.join(PREFERENCES_FILE))
|
||||
.expect("Could not get home directory");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user