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
```
This commit is contained in:
BD103 2024-05-20 16:40:59 -04:00 committed by GitHub
parent 2940636e0a
commit 53f4c38e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,8 +14,6 @@
//!
//! [Depth of field]: https://en.wikipedia.org/wiki/Depth_of_field
use std::f32::INFINITY;
use bevy_app::{App, Plugin};
use bevy_asset::{load_internal_asset, Handle};
use bevy_derive::{Deref, DerefMut};
@ -453,7 +451,7 @@ impl Default for DepthOfFieldSettings {
aperture_f_stops: physical_camera_default.aperture_f_stops,
sensor_height: physical_camera_default.sensor_height,
max_circle_of_confusion_diameter: 64.0,
max_depth: INFINITY,
max_depth: f32::INFINITY,
mode: DepthOfFieldMode::Bokeh,
}
}