Silence warnings, run cargo fmt
This commit is contained in:
parent
fe1c1d3655
commit
af1c767f5f
77 changed files with 1904 additions and 903 deletions
|
|
@ -42,10 +42,7 @@ pub fn calculate_min_zoom(
|
|||
viewport_width: f64,
|
||||
viewport_height: f64,
|
||||
) -> f64 {
|
||||
if scene_width <= 0.0
|
||||
|| scene_height <= 0.0
|
||||
|| viewport_width <= 0.0
|
||||
|| viewport_height <= 0.0
|
||||
if scene_width <= 0.0 || scene_height <= 0.0 || viewport_width <= 0.0 || viewport_height <= 0.0
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue