Skip to content

Commit

Permalink
customize formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Sjölander committed Dec 3, 2018
1 parent d9e8609 commit 41b87b5
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 864 deletions.
6 changes: 1 addition & 5 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ fn main() {
height: stretch::style::Dimension::Points(100.0),
justify_content: stretch::style::JustifyContent::Center,

children: vec![stretch::style::Node {
width: stretch::style::Dimension::Percent(0.5),

..Default::default()
}],
children: vec![stretch::style::Node { width: stretch::style::Dimension::Percent(0.5), ..Default::default() }],

..Default::default()
};
Expand Down
3 changes: 3 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
max_width = 120
use_field_init_shorthand = true
use_small_heuristics = "Max"
Loading

0 comments on commit 41b87b5

Please sign in to comment.