]> git.lizzy.rs Git - rust.git/commit
Auto merge of #25135 - alexcrichton:generalize-env-set-var, r=aturon
authorbors <bors@rust-lang.org>
Wed, 6 May 2015 15:50:13 +0000 (15:50 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 May 2015 15:50:13 +0000 (15:50 +0000)
commit0848d1c6a5908a9c3e6545e8a527027b164c7d05
treefa7cdab9a5eea0c262fad656336d42e5f91fe70e
parent5a83fa271d9ea85bca163c26dc8896ac394976e4
parent9b88cd1c691626bb38c243c1996d1d2d045bbeda
Auto merge of #25135 - alexcrichton:generalize-env-set-var, r=aturon

Many bounds are currently of the form `T: ?Sized + AsRef<OsStr>` where the
argument is `&T`, but the pattern elsewhere (primarily `std::fs`) has been to
remove the `?Sized` bound and take `T` instead (allowing usage with both
references and owned values). This commit generalizes the possible apis in
`std::env` from `&T` to `T` in this fashion.

The `split_paths` function remains the same as the return value borrows the
input value, so ta borrowed reference is required.