about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-01 16:06:48 -0700
committerbors <bors@rust-lang.org>2014-05-01 16:06:48 -0700
commit9f836d5a53e20fde65aa3469fa1826228e7c273a (patch)
tree01a0c192a4dabd1ebb17f3d3da8662701d43c6f4 /src/libstd/path
parentfb72d7cfea9ba44581f708b13aa82ab23ee4fa7e (diff)
parente93cb04c4b011088d3b13a17bdf4cb865730dd38 (diff)
downloadrust-9f836d5a53e20fde65aa3469fa1826228e7c273a.tar.gz
rust-9f836d5a53e20fde65aa3469fa1826228e7c273a.zip
auto merge of #13877 : thestinger/rust/de-tilde-str-vec, r=alexcrichton
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/posix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs
index d69e9b448be..99a281755e4 100644
--- a/src/libstd/path/posix.rs
+++ b/src/libstd/path/posix.rs
@@ -555,7 +555,7 @@ mod tests {
             ($path:expr, $disp:ident, $exp:expr) => (
                 {
                     let path = Path::new($path);
-                    assert!(path.$disp().to_str() == ~$exp);
+                    assert!(path.$disp().to_str().as_slice() == $exp);
                 }
             )
         )