mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
deps: cargo update (#474)
* deps: cargo update * deps: Update edition 2024 and run cargo update
This commit is contained in:
+1
-5
@@ -71,11 +71,7 @@ impl DisplayData {
|
||||
|
||||
fn percent_size(&self, node: &DisplayNode) -> f32 {
|
||||
let result = node.size as f32 / self.base_size as f32;
|
||||
if result.is_normal() {
|
||||
result
|
||||
} else {
|
||||
0.0
|
||||
}
|
||||
if result.is_normal() { result } else { 0.0 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user