Improve rust indentation queries

if/if let are already handled by block, and keeping these scopes would
indent else blocks one level too far.
This commit is contained in:
Blaž Hrastnik 2021-07-24 15:31:03 +09:00
parent 112ae5cffe
commit f24007b30f

View File

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