about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-11-27 19:45:47 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-06 23:53:02 -0500
commitc2da923fc95e29424a7dac1505d6e8ea50c49b9f (patch)
tree8b47144a56039b4a53519513bce60aa74c1dcf51 /src/libstd/path
parentba01ea3730025028affbf4ce56f29621861779c6 (diff)
downloadrust-c2da923fc95e29424a7dac1505d6e8ea50c49b9f.tar.gz
rust-c2da923fc95e29424a7dac1505d6e8ea50c49b9f.zip
libstd: remove unnecessary `to_string()` calls
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/windows.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs
index 366e3125c65..512756ececd 100644
--- a/src/libstd/path/windows.rs
+++ b/src/libstd/path/windows.rs
@@ -1321,9 +1321,9 @@ mod tests {
     #[test]
     fn test_display_str() {
         let path = Path::new("foo");
-        assert_eq!(path.display().to_string(), "foo".to_string());
+        assert_eq!(path.display().to_string(), "foo");
         let path = Path::new(b"\\");
-        assert_eq!(path.filename_display().to_string(), "".to_string());
+        assert_eq!(path.filename_display().to_string(), "");
 
         let path = Path::new("foo");
         let mo = path.display().as_cow();