diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-11-27 21:18:39 -0600 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2020-11-28 17:41:21 -0600 |
| commit | 4d9fa00fd58373f4ee19b6a45ab37e4601a8dd93 (patch) | |
| tree | e65ec62f52738cdd4ad0c8414299aab00e6cad14 /src/expr.rs | |
| parent | 5c0673c371b4306e1e7fda8455af6fa3085a4627 (diff) | |
feat: support underscore expressions
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.rs b/src/expr.rs index 38543b70ae3..fe348bc6028 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -384,6 +384,7 @@ pub(crate) fn format_expr( } } ast::ExprKind::Await(_) => rewrite_chain(expr, context, shape), + ast::ExprKind::Underscore => Some("_".to_owned()), ast::ExprKind::Err => None, }; |
