Skip to content

Commit

Permalink
Fix lints on beta Rust (bevyengine#13444)
Browse files Browse the repository at this point in the history
# Objective

- Fixes bevyengine#13437!

## Solution

- Use `f32::INFINITY` instead of `std::f32::INFINITY`.

## Testing

```shell
cargo +beta clippy --workspace --all-targets --all-features -- -Dwarnings
```
  • Loading branch information
BD103 authored May 20, 2024
1 parent 2940636 commit 53f4c38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bevy_core_pipeline/src/dof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 53f4c38

Please sign in to comment.