pub fn path_from(overridden: Option<OsString>) -> Result<PathBuf, AuthError>Expand description
default_path with the override supplied rather than read.
Split out so the override can be tested without writing to the process
environment. std::env::set_var is unsafe in edition 2024 because another
thread reading the environment concurrently is a data race, and cargo test
runs tests on several threads - a “single-threaded test process” safety
comment would simply have been untrue.