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() {
|
|
|
|
bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
|
|
|
|
.ddddddddddddddddddddddddddd();
|
|
|
|
|
|
|
|
bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc.ddddddddddddddddddddddddddd.eeeeeeee();
|
|
|
|
|
|
|
|
x()
|
|
|
|
.y(|| match cond() { true => (), false => () });
|
|
|
|
|
|
|
|
loong_func()
|
|
|
|
.quux(move || if true {
|
|
|
|
1
|
|
|
|
} else {
|
|
|
|
2
|
|
|
|
});
|
|
|
|
|
|
|
|
fffffffffffffffffffffffffffffffffff(a,
|
|
|
|
{
|
|
|
|
SCRIPT_TASK_ROOT
|
|
|
|
.with(|root| {
|
2015-09-10 17:53:21 -05:00
|
|
|
*root.borrow_mut() = Some(&script_task);
|
|
|
|
});
|
2015-09-09 16:17:31 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx
|
|
|
|
.map(|x| x + 5)
|
|
|
|
.map(|x| x / 2)
|
|
|
|
.fold(0, |acc, x| acc + x);
|
|
|
|
|
|
|
|
aaaaaaaaaaaaaaaa.map(|x| {
|
|
|
|
x += 1;
|
|
|
|
x
|
|
|
|
}).filter(some_mod::some_filter)
|
|
|
|
}
|