std: rename Option.chain to Option.and_then on windows
This commit is contained in:
parent
7f9c5aae9e
commit
28eb49bfbf
@ -569,7 +569,7 @@ pub fn homedir() -> Option<Path> {
|
||||
|
||||
#[cfg(windows)]
|
||||
fn secondary() -> Option<Path> {
|
||||
do getenv("USERPROFILE").chain |p| {
|
||||
do getenv("USERPROFILE").and_then |p| {
|
||||
if !p.is_empty() {
|
||||
Some(Path(p))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user