diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 14:43:55 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 23:53:00 -0500 |
| commit | 60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd (patch) | |
| tree | 1bf5a10a9bb871ab6dc851c4f9b31ec1d852e4cc /src/libstd/path/mod.rs | |
| parent | 09f7713dd45c3a0b37073115575697c256238b18 (diff) | |
| download | rust-60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd.tar.gz rust-60338d91c4334e5fdfbd37b298cd5b99e8fc0cdd.zip | |
libstd: remove unnecessary `as_slice()` calls
Diffstat (limited to 'src/libstd/path/mod.rs')
| -rw-r--r-- | src/libstd/path/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index b17106e811f..86d55727a5a 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -941,6 +941,6 @@ mod tests { let input = r"\foo\bar\baz"; let path: WindowsPath = WindowsPath::new(input.to_c_str()); - assert_eq!(path.as_str().unwrap(), input.as_slice()); + assert_eq!(path.as_str().unwrap(), input); } } |
