gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

Cannot build on latest nightly #228

Closed gyk closed 2 years ago

gyk commented 2 years ago

With Cargo 1.58.0-nightly (2e2a16e98 2021-11-08), the error message:

error[E0282]: type annotations needed
   --> native-windows-gui\src\layouts\grid_layout.rs:461:55
    |
454 |             let x = m_left + (sp + (sp2 * item.col)) + &columns[0..(item.col as usize)].iter().sum();
    |                 - consider giving `x` a type
...
461 |                 wh::set_window_position(item.control, x as i32, y as i32);
    |                                                       ^ cannot infer type
    |
    = note: type must be known at this point

For more information about this error, try `rustc --explain E0282`.
gabdube commented 2 years ago

huh, weird. Fixed.