重新format,对use进行排序

This commit is contained in:
HouXiaoxuan
2023-12-22 09:03:51 +08:00
parent 758cc334eb
commit 5c439aeff2
11 changed files with 66 additions and 51 deletions

View File

@@ -6,13 +6,22 @@ struct_lit_width = 60
chain_width = 80
single_line_if_else_max_width = 60
single_line_let_else_max_width = 60
merge_derives = true
reorder_imports = true
unstable_features = true # 使能 unstable 特性
## unstable features below ##
# 格式化注释代码块Unstable
format_code_in_doc_comments = true
# 重新排序mod
reorder_modules = true
# 按照 crate 重新排序
imports_granularity = "Crate"
# 过长换行使用大括号
match_arm_blocks = true
# 数组换行
indent_style = "Block"
# 彩色输出Unstable
color = "Auto"
# 忽略,也是 unstable 特性
ignore = ["tests"]