about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2020-11-27 21:18:39 -0600
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2020-11-28 17:41:21 -0600
commit4d9fa00fd58373f4ee19b6a45ab37e4601a8dd93 (patch)
treee65ec62f52738cdd4ad0c8414299aab00e6cad14 /src/expr.rs
parent5c0673c371b4306e1e7fda8455af6fa3085a4627 (diff)
feat: support underscore expressions
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs1
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,
     };