diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 19:45:47 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 23:53:02 -0500 |
| commit | c2da923fc95e29424a7dac1505d6e8ea50c49b9f (patch) | |
| tree | 8b47144a56039b4a53519513bce60aa74c1dcf51 /src/libstd/path | |
| parent | ba01ea3730025028affbf4ce56f29621861779c6 (diff) | |
| download | rust-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.rs | 4 |
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(); |
