diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..1059111 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,12 @@ +unstable_features = true +binop_separator = "Back" +format_code_in_doc_comments = true +format_macro_matchers = true +format_strings = true +imports_layout = "HorizontalVertical" +match_block_trailing_comma = true +merge_imports = true +normalize_comments = true +use_field_init_shorthand = true +use_try_shorthand = true +wrap_comments = true diff --git a/src/main.rs b/src/main.rs index 0328871..a84910b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,9 @@ -use gtk::prelude::FrameExt; -use gtk::prelude::OrientableExt; -use gtk::prelude::TextBufferExt; -use gtk::prelude::TextViewExt; -use gtk::prelude::WidgetExt; -use gtk::{Inhibit, Orientation}; -use relm::Widget; -use relm::{connect, Relm}; +use gtk::{ + prelude::{FrameExt, OrientableExt, TextBufferExt, TextViewExt, WidgetExt}, + Inhibit, + Orientation, +}; +use relm::{connect, Relm, Widget}; use relm_derive::{widget, Msg}; fn main() { @@ -68,7 +66,7 @@ impl Widget for Win { } } } - } + }, } }