提交 a7960136 编写于 作者: J Jorge Aparicio

libfmt_macros: remove unnecessary `as_slice()` calls

上级 0f54f32a
......@@ -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> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册