Skip to content

Commit 28eb49b

Browse files
committed
std: rename Option.chain to Option.and_then on windows
1 parent 7f9c5aa commit 28eb49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ pub fn homedir() -> Option<Path> {
569569

570570
#[cfg(windows)]
571571
fn secondary() -> Option<Path> {
572-
do getenv("USERPROFILE").chain |p| {
572+
do getenv("USERPROFILE").and_then |p| {
573573
if !p.is_empty() {
574574
Some(Path(p))
575575
} else {

0 commit comments

Comments
 (0)