2016-05-29 10:58:38 -05:00
|
|
|
// rustfmt-single_line_if_else_max_width: 0
|
2015-09-09 16:17:31 -05:00
|
|
|
// rustfmt-chains_overflow_last: false
|
|
|
|
// Test chain formatting without overflowing the last item.
|
|
|
|
|
|
|
|
fn main() {
|
2015-10-23 13:36:38 -05:00
|
|
|
bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
|
2016-04-22 02:03:36 -05:00
|
|
|
.ddddddddddddddddddddddddddd();
|
2015-09-09 16:17:31 -05:00
|
|
|
|
|
|
|
bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
|
2016-04-22 02:03:36 -05:00
|
|
|
.ddddddddddddddddddddddddddd
|
|
|
|
.eeeeeeee();
|
2015-09-09 16:17:31 -05:00
|
|
|
|
2016-04-13 15:36:59 -05:00
|
|
|
x().y(|| match cond() {
|
2016-04-22 02:03:36 -05:00
|
|
|
true => (),
|
|
|
|
false => (),
|
|
|
|
});
|
2015-09-09 16:17:31 -05:00
|
|
|
|
|
|
|
loong_func()
|
2016-04-13 15:36:59 -05:00
|
|
|
.quux(move || if true {
|
|
|
|
1
|
|
|
|
} else {
|
|
|
|
2
|
2015-09-09 16:17:31 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
fffffffffffffffffffffffffffffffffff(a,
|
|
|
|
{
|
|
|
|
SCRIPT_TASK_ROOT.with(|root| {
|
2016-04-22 02:03:36 -05:00
|
|
|
*root.borrow_mut() = Some(&script_task);
|
|
|
|
});
|
2015-09-09 16:17:31 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx.map(|x| x + 5)
|
2016-04-22 02:03:36 -05:00
|
|
|
.map(|x| x / 2)
|
|
|
|
.fold(0, |acc, x| acc + x);
|
2015-09-09 16:17:31 -05:00
|
|
|
|
|
|
|
aaaaaaaaaaaaaaaa.map(|x| {
|
2016-04-22 02:03:36 -05:00
|
|
|
x += 1;
|
|
|
|
x
|
|
|
|
})
|
|
|
|
.filter(some_mod::some_filter)
|
2015-09-09 16:17:31 -05:00
|
|
|
}
|