SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
237 stars 21 forks source link

fix clippy lints #167

Closed sanbox-irl closed 5 months ago

sanbox-irl commented 5 months ago

This PR fixes various nits and whatnots that clippy yells at me about (as of MSRV).

The majority of these were replacing use std::f32::INFINITY with a simpler f32::INFINITY, apparently because std::f32::INFINITY will be deprecated at some point? It seems all a bit vague.

I don't feel strongly about any of these changes in particular, but I do like a project to have no clippy warnings, so if there's anything you'd like to revert here, just lmk and I'll swap to making clippy::allows instead