libfmt_macros: remove unnecessary as_slice() calls

This commit is contained in:
Jorge Aparicio 2014-11-27 13:15:18 -05:00
parent 0f54f32a9c
commit a7960136ac

View File

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