1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

std::f32::INFINITY -> f32::INFINITY

This commit is contained in:
Emil Ernerfeldt
2020-04-25 10:52:20 +02:00
parent 299cc76fcf
commit 02f3b6dddf
6 changed files with 10 additions and 10 deletions

View File

@@ -291,7 +291,7 @@ pub struct Rect {
impl Rect {
/// Infinite rectangle that contains everything
pub fn everything() -> Self {
let inf = std::f32::INFINITY;
let inf = f32::INFINITY;
Self {
min: pos2(-inf, -inf),
max: pos2(inf, inf),
@@ -299,7 +299,7 @@ impl Rect {
}
pub fn nothing() -> Self {
let inf = std::f32::INFINITY;
let inf = f32::INFINITY;
Self {
min: pos2(inf, inf),
max: pos2(-inf, -inf),