std: rename Option.chain to Option.and_then on windows

This commit is contained in:
Erick Tryzelaar 2013-09-13 06:58:46 -07:00
parent 7f9c5aae9e
commit 28eb49bfbf

View File

@ -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 {