Skip to content

Commit 9cd42f3

Browse files
committed
satisfy clippy
1 parent 558a35a commit 9cd42f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_render/src/camera/camera.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ impl Camera {
593593

594594
// Rescale by the rendering target's scaling factor if we have it.
595595
let scale_factor = self.target_scaling_factor().unwrap_or(1.);
596-
viewport_position = viewport_position / scale_factor;
596+
viewport_position /= scale_factor;
597597

598598
// Flip the Y co-ordinate origin from the top to the bottom.
599599
viewport_position.y = target_size.y - viewport_position.y;

0 commit comments

Comments
 (0)