error[E0308]: mismatched types
--> tests/compile_fail/raw_scale_factor.rs:4:45
|
4 | harness.main_window()?.set_scale_factor(2.0)
| ---------------- ^^^ expected `ScaleFactor`, found floating-point number
| |
| arguments to this method are incorrect
|
note: method defined here
--> src/windows.rs
|
| pub fn set_scale_factor(self, factor: ScaleFactor) -> Result {
| ^^^^^^^^^^^^^^^^