Fix warning: unnecessary parentheses around function argument, new in nightly-2018-02-15

This commit is contained in:
ice_iix 2018-09-29 23:28:38 -07:00
parent cb1d282381
commit d6fa1d0a0b
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ impl ecs::System for PlayerRenderer {
};
let offset_matrix = Matrix4::from(Decomposed {
scale: 1.0,
rot: Quaternion::from_angle_y(Rad::new((PI + rotation.yaw as f32))),
rot: Quaternion::from_angle_y(Rad::new(PI + rotation.yaw as f32)),
disp: offset,
});

View File

@ -958,8 +958,8 @@ fn calculate_light(snapshot: &world::Snapshot, orig_x: i32, orig_y: i32, orig_z:
let mut sky_light = 0u32;
let mut count = 0;
let s_block_light = max(((s_block_light as i8) - 8), 0) as u8;
let s_sky_light = max(((s_sky_light as i8) - 8), 0) as u8;
let s_block_light = max((s_block_light as i8) - 8, 0) as u8;
let s_sky_light = max((s_sky_light as i8) - 8, 0) as u8;
let dx = (ox as f64) * 0.6;
let dy = (oy as f64) * 0.6;