From f8ae2dcffec3cc9f6d743a1c5cfeba797ffe2cb5 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 16 Dec 2017 18:22:35 +0200 Subject: [PATCH] Update rustfmt.toml and remove rustfmt warnings. --- hammond-gtk/src/main.rs | 4 +--- rustfmt.toml | 19 +++---------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/hammond-gtk/src/main.rs b/hammond-gtk/src/main.rs index 5b1bac6..ef03853 100644 --- a/hammond-gtk/src/main.rs +++ b/hammond-gtk/src/main.rs @@ -52,9 +52,7 @@ mod content; mod utils; mod static_resource; -/* -THIS IS STILL A PROTOTYPE. -*/ +// THIS IS STILL A PROTOTYPE. fn build_ui(app: >k::Application) { let menu = gio::Menu::new(); diff --git a/rustfmt.toml b/rustfmt.toml index 7f1b8d9..c420ec1 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,26 +1,13 @@ unstable_features = true verbose = false -disable_all_formatting = false -skip_children = false max_width = 100 comment_width = 100 wrap_comments = true -error_on_line_overflow = true -error_on_line_overflow_comments = false tab_spaces = 4 -newline_style = "Unix" -fn_call_style = "Block" -report_todo = "Never" -report_fixme = "Never" -reorder_extern_crates = true -reorder_extern_crates_in_group = true -reorder_imports = false hard_tabs = false -spaces_within_parens = false +newline_style = "Unix" +reorder_imports = false write_mode = "Overwrite" -merge_derives = true condense_wildcard_suffixes = false format_strings = true -multiline_closure_forces_block = true -attributes_on_same_line_as_field = true -attributes_on_same_line_as_variant = true \ No newline at end of file +normalize_comments = true \ No newline at end of file