diff options
| author | Gareth Smith <garethdanielsmith@gmail.com> | 2013-07-21 18:33:29 +0100 |
|---|---|---|
| committer | Gareth Smith <garethdanielsmith@gmail.com> | 2013-07-21 18:33:29 +0100 |
| commit | a6263694ffbe00b728080280c9ad00be6ee830cf (patch) | |
| tree | 4993e32b38aec2070b352467aecc6b58c4ee4c63 /src/libstd | |
| parent | c4b6216943eebbf17e6ea5641a0f32976633c4f2 (diff) | |
| download | rust-a6263694ffbe00b728080280c9ad00be6ee830cf.tar.gz rust-a6263694ffbe00b728080280c9ad00be6ee830cf.zip | |
Remove what appears to be redundant indirection from
os::list_dir_path.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 3b37fb077d6..b07d133f703 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -788,8 +788,8 @@ pub fn list_dir(p: &Path) -> ~[~str] { * * This version prepends each entry with the directory. */ -pub fn list_dir_path(p: &Path) -> ~[~Path] { - list_dir(p).map(|f| ~p.push(*f)) +pub fn list_dir_path(p: &Path) -> ~[Path] { + list_dir(p).map(|f| p.push(*f)) } /// Removes a directory at the specified path, after removing |
