Skip to content

Commit 53f4c38

Browse files
authored
Fix lints on beta Rust (#13444)
# Objective - Fixes #13437! ## Solution - Use `f32::INFINITY` instead of `std::f32::INFINITY`. ## Testing ```shell cargo +beta clippy --workspace --all-targets --all-features -- -Dwarnings ```
1 parent 2940636 commit 53f4c38

File tree

1 file changed

+1
-3
lines changed
  • crates/bevy_core_pipeline/src/dof

1 file changed

+1
-3
lines changed

crates/bevy_core_pipeline/src/dof/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
//!
1515
//! [Depth of field]: https://en.wikipedia.org/wiki/Depth_of_field
1616
17-
use std::f32::INFINITY;
18-
1917
use bevy_app::{App, Plugin};
2018
use bevy_asset::{load_internal_asset, Handle};
2119
use bevy_derive::{Deref, DerefMut};
@@ -453,7 +451,7 @@ impl Default for DepthOfFieldSettings {
453451
aperture_f_stops: physical_camera_default.aperture_f_stops,
454452
sensor_height: physical_camera_default.sensor_height,
455453
max_circle_of_confusion_diameter: 64.0,
456-
max_depth: INFINITY,
454+
max_depth: f32::INFINITY,
457455
mode: DepthOfFieldMode::Bokeh,
458456
}
459457
}

0 commit comments

Comments
 (0)