Improve rust indentation queries

if/if let are already handled by block, and keeping these scopes would
indent else blocks one level too far.
pull/511/head
Blaž Hrastnik 3 years ago
parent 112ae5cffe
commit f24007b30f

@ -1,11 +1,4 @@
indent = [ indent = [
"while_expression",
"for_expression",
"loop_expression",
"if_expression",
"if_let_expression",
"tuple_expression",
"array_expression",
"use_list", "use_list",
"block", "block",
"match_block", "match_block",
@ -19,6 +12,8 @@ indent = [
"enum_variant_list", "enum_variant_list",
"binary_expression", "binary_expression",
"field_expression", "field_expression",
"tuple_expression",
"array_expression",
"where_clause", "where_clause",
"macro_invocation" "macro_invocation"
] ]

Loading…
Cancel
Save