diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 13:15:18 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 19:05:58 -0500 |
| commit | a7960136aca69d44bbe429a8690ca05391e5e349 (patch) | |
| tree | 8187b73685f34cbb3f09c2260192fadf942d1cb3 | |
| parent | 0f54f32a9cd6455871ba87f65e8ee9b22ce58670 (diff) | |
| download | rust-a7960136aca69d44bbe429a8690ca05391e5e349.tar.gz rust-a7960136aca69d44bbe429a8690ca05391e5e349.zip | |
libfmt_macros: remove unnecessary `as_slice()` calls
| -rw-r--r-- | src/libfmt_macros/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index 03b65b3f71c..d88551eb855 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -440,7 +440,7 @@ mod tests { fn same(fmt: &'static str, p: &[Piece<'static>]) { let mut parser = Parser::new(fmt); - assert!(p == parser.collect::<Vec<Piece<'static>>>().as_slice()); + assert!(p == parser.collect::<Vec<Piece<'static>>>()); } fn fmtdflt() -> FormatSpec<'static> { |
