2017-11-13 01:22:09 -06:00
|
|
|
// rustfmt-indent_style: Block
|
2017-06-01 05:59:50 -05:00
|
|
|
|
|
|
|
// #1618
|
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
if foo {
|
2017-09-14 22:20:58 -05:00
|
|
|
if ((right_paddle_speed < 0.) && (right_paddle.position().y - paddle_size.y / 2. > 5.))
|
|
|
|
|| ((right_paddle_speed > 0.)
|
|
|
|
&& (right_paddle.position().y + paddle_size.y / 2. < game_height as f32 - 5.))
|
2017-06-01 05:59:50 -05:00
|
|
|
{
|
|
|
|
foo
|
|
|
|
}
|
|
|
|
if ai_timer.elapsed_time().as_microseconds() > ai_time.as_microseconds() {
|
2017-07-26 02:30:58 -05:00
|
|
|
if ball.position().y + ball_radius > right_paddle.position().y + paddle_size.y / 2.
|
2017-06-01 05:59:50 -05:00
|
|
|
{
|
|
|
|
foo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-06-12 03:25:38 -05:00
|
|
|
|
|
|
|
fn issue1656() {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
match rewrite {
|
|
|
|
Some(ref body_str)
|
2017-09-14 22:20:58 -05:00
|
|
|
if (!body_str.contains('\n') && body_str.len() <= arm_shape.width)
|
2017-11-26 22:35:27 -06:00
|
|
|
|| !context.config.match_arm_blocks()
|
2017-09-14 22:20:58 -05:00
|
|
|
|| (extend && first_line_width(body_str) <= arm_shape.width)
|
|
|
|
|| is_block =>
|
2017-07-10 02:52:55 -05:00
|
|
|
{
|
2017-06-12 03:25:38 -05:00
|
|
|
return None;
|
|
|
|
}
|
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|