From 6502e4e37849c5f80c1d9e2c5a4feae442d19a9d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 18 Feb 2022 11:37:50 +0100 Subject: [PATCH] Enable automatic field init shorthand in rustfmt --- .rustfmt.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.rustfmt.toml b/.rustfmt.toml index 3a24d2aa..7158a819 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -2,5 +2,6 @@ comment_width = 100 format_code_in_doc_comments = true imports_granularity = "Crate" newline_style = "Unix" +use_field_init_shorthand = true use_small_heuristics = "Max" wrap_comments = true