mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Fix a typo
This commit is contained in:
+1
-2
@@ -1132,8 +1132,7 @@ fn rewrite_single_line(
|
||||
|
||||
let new_width = try_opt!(width.checked_sub(pat_expr_str.len() + fixed_cost));
|
||||
let expr = &self.block.stmts[0];
|
||||
let if_str =
|
||||
try_opt!(expr.rewrite(context, Shape::legacy(new_width, Indent::empty()),));
|
||||
let if_str = try_opt!(expr.rewrite(context, Shape::legacy(new_width, Indent::empty())));
|
||||
|
||||
let new_width = try_opt!(new_width.checked_sub(if_str.len()));
|
||||
let else_expr = &else_node.stmts[0];
|
||||
|
||||
Reference in New Issue
Block a user