]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/os.rs
auto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brson
[rust.git] / src / libstd / os.rs
index bbfa15d69bd94af55af85b2a1fdd2e9d182238db..4bfd3bbcd3ff1c563a91b99c6795881273dcecdd 100644 (file)
@@ -788,8 +788,8 @@ fn star(p: &Path) -> Path { p.push("*") }
  *
  * 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