From 35377dc90382facb5b75506549974441302ed93c Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Sat, 7 Jan 2023 12:45:29 +0100 Subject: [PATCH] Update the configuration of rustfmt and run it --- gnuplot/src/axes_common.rs | 5 ++++- rustfmt.toml | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gnuplot/src/axes_common.rs b/gnuplot/src/axes_common.rs index f5f7db5b..6d9d7e32 100644 --- a/gnuplot/src/axes_common.rs +++ b/gnuplot/src/axes_common.rs @@ -1449,7 +1449,10 @@ impl AxesCommonData let mut first = true; for e in self.elems.iter() { - if e.num_rows == 0 { continue; } + if e.num_rows == 0 + { + continue; + } if !first { write!(writer, ","); diff --git a/rustfmt.toml b/rustfmt.toml index 65f7395a..cb3fd65f 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -34,7 +34,7 @@ struct_field_align_threshold = 0 enum_discrim_align_threshold = 0 match_arm_blocks = true force_multiline_blocks = false -fn_args_layout = "Compressed" +fn_params_layout = "Compressed" brace_style = "AlwaysNextLine" control_brace_style = "AlwaysNextLine" trailing_semicolon = true @@ -57,8 +57,6 @@ skip_children = false hide_parse_errors = false error_on_line_overflow = false error_on_unformatted = false -report_todo = "Never" -report_fixme = "Never" ignore = [] emit_mode = "Files" make_backup = false