Fix double space in pretty printed TryBlock
This commit is contained in:
parent
2b67c30bfe
commit
2f25a4ab30
2 changed files with 1 additions and 2 deletions
|
@ -2239,7 +2239,6 @@ impl<'a> State<'a> {
|
||||||
}
|
}
|
||||||
ast::ExprKind::TryBlock(ref blk) => {
|
ast::ExprKind::TryBlock(ref blk) => {
|
||||||
self.head("try");
|
self.head("try");
|
||||||
self.space();
|
|
||||||
self.print_block_with_attrs(blk, attrs)
|
self.print_block_with_attrs(blk, attrs)
|
||||||
}
|
}
|
||||||
ast::ExprKind::Err => {
|
ast::ExprKind::Err => {
|
||||||
|
|
|
@ -256,7 +256,7 @@ fn test_expr() {
|
||||||
assert_eq!(stringify_expr!(expr.await), "expr.await");
|
assert_eq!(stringify_expr!(expr.await), "expr.await");
|
||||||
|
|
||||||
// ExprKind::TryBlock
|
// ExprKind::TryBlock
|
||||||
assert_eq!(stringify_expr!(try {}), "try {}"); // FIXME
|
assert_eq!(stringify_expr!(try {}), "try {}");
|
||||||
|
|
||||||
// ExprKind::Assign
|
// ExprKind::Assign
|
||||||
assert_eq!(stringify_expr!(expr = true), "expr = true");
|
assert_eq!(stringify_expr!(expr = true), "expr = true");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue