format and add fmt config
This commit is contained in:
parent
227bba597a
commit
d9216db411
2 changed files with 19 additions and 9 deletions
12
rustfmt.toml
Normal file
12
rustfmt.toml
Normal file
|
@ -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
|
16
src/main.rs
16
src/main.rs
|
@ -1,11 +1,9 @@
|
||||||
use gtk::prelude::FrameExt;
|
use gtk::{
|
||||||
use gtk::prelude::OrientableExt;
|
prelude::{FrameExt, OrientableExt, TextBufferExt, TextViewExt, WidgetExt},
|
||||||
use gtk::prelude::TextBufferExt;
|
Inhibit,
|
||||||
use gtk::prelude::TextViewExt;
|
Orientation,
|
||||||
use gtk::prelude::WidgetExt;
|
};
|
||||||
use gtk::{Inhibit, Orientation};
|
use relm::{connect, Relm, Widget};
|
||||||
use relm::Widget;
|
|
||||||
use relm::{connect, Relm};
|
|
||||||
use relm_derive::{widget, Msg};
|
use relm_derive::{widget, Msg};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -68,7 +66,7 @@ impl Widget for Win {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue