format!() in build.rs strips the decimal place if the duration is a whole number, which results in the number being interpreted as an i32 in the struct definition. In build.rs line 537.
error[E0308]: mismatched types
|
151 | duration: 16,
| ^^ expected `f32`, found integer
|
help: use a float literal
|
151 | duration: 16.0,
| ++