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> {