Skip to content

Commit a796013

Browse files
author
Jorge Aparicio
committed
libfmt_macros: remove unnecessary as_slice() calls
1 parent 0f54f32 commit a796013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfmt_macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ mod tests {
440440

441441
fn same(fmt: &'static str, p: &[Piece<'static>]) {
442442
let mut parser = Parser::new(fmt);
443-
assert!(p == parser.collect::<Vec<Piece<'static>>>().as_slice());
443+
assert!(p == parser.collect::<Vec<Piece<'static>>>());
444444
}
445445

446446
fn fmtdflt() -> FormatSpec<'static> {

0 commit comments

Comments
 (0)