mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Use field init shorthand where possible
Field init shorthand allows writing initializers like `tcx: tcx` as `tcx`. The compiler already uses it extensively. Fix the last few places where it isn't yet used.
This commit is contained in:
@@ -4,6 +4,7 @@ use_small_heuristics = "Max"
|
||||
merge_derives = false
|
||||
group_imports = "StdExternalCrate"
|
||||
imports_granularity = "Module"
|
||||
use_field_init_shorthand = true
|
||||
|
||||
# Files to ignore. Each entry uses gitignore syntax, but `!` prefixes aren't allowed.
|
||||
ignore = [
|
||||
|
||||
Reference in New Issue
Block a user