diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2015-09-08 01:03:01 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2015-09-08 01:03:01 +0200 |
| commit | 808390817aa50b6251e957075c22a688bc96ce9f (patch) | |
| tree | 6301ceb469fc38e995652ef0eb2d927f2b89467d /src/libstd/sys | |
| parent | 9cca96545faf2cfc972cc67b83deae2a78935c43 (diff) | |
| download | rust-808390817aa50b6251e957075c22a688bc96ce9f.tar.gz rust-808390817aa50b6251e957075c22a688bc96ce9f.zip | |
fixes/improvements thanks to @Manishearth
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index af0d8da05f4..15f04d37674 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -141,8 +141,7 @@ pub fn split_paths(unparsed: &OsStr) -> SplitPaths { fn is_colon(b: &u8) -> bool { *b == b':' } let unparsed = unparsed.as_bytes(); SplitPaths { - iter: unparsed.split(is_colon as fn(&u8) -> bool) - .map(bytes_to_path as fn(&[u8]) -> PathBuf) + iter: unparsed.split(is_colon).map(bytes_to_path) } } |
