1 // rustfmt-chain_indent: Visual
2 // rustfmt-chain_base_indent: Visual
3 // Test chain formatting.
6 // Don't put chains on a single line if it wasn't so in source.
12 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
13 .ddddddddddddddddddddddddddd();
15 bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc
16 .ddddddddddddddddddddddddddd
19 // Test case where first chain element isn't a path, but is shorter than
21 x().y(|| match cond() {
26 loong_func().quux(move || if true {
32 some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
37 some_fuuuuuuuuunction()
38 .method_call_a(aaaaa, bbbbb, |c| {
42 .method_call_b(aaaaa, bbbbb, |c| {
47 fffffffffffffffffffffffffffffffffff(a, {
48 SCRIPT_TASK_ROOT.with(|root| {
49 *root.borrow_mut() = Some(&script_task);
53 let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx.map(|x| x + 5)
58 aaaaaaaaaaaaaaaa.map(|x| {
62 .filter(some_mod::some_filter)
88 // params are 1-indexed
89 stack.push(mparams[match cur.to_digit(10) {
90 Some(d) => d as usize - 1,
91 None => return Err("bad param number".to_owned()),
129 fn is_replaced_content() -> bool {
130 constellat.send(ConstellationMsg::ViewportConstrained(self.id, constraints))
137 std::mem::transmute(dl.symbol::<()>("init").unwrap())