From a7960136aca69d44bbe429a8690ca05391e5e349 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Nov 2014 13:15:18 -0500 Subject: [PATCH] libfmt_macros: remove unnecessary `as_slice()` calls --- src/libfmt_macros/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::>>().as_slice()); + assert!(p == parser.collect::>>()); } fn fmtdflt() -> FormatSpec<'static> {