std: rename Option.chain to Option.and_then on windows
This commit is contained in:
parent
7f9c5aae9e
commit
28eb49bfbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue