libfmt_macros: remove unnecessary as_slice()
calls
This commit is contained in:
parent
0f54f32a9c
commit
a7960136ac
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user