Compilation errors
Closed this issue · 5 comments
Sorrien commented
I cannot compile with stable or nightly with the following errors:
error[E0283]: type annotations needed: cannot resolve `_: std::convert::Into<winit::dpi::Size>`
--> src\utility\window.rs:16:10
|
16 | .with_inner_size((width, height).into())
| ^^^^^^^^^^^^^^^
error[E0599]: no variant or associated item named `EventsCleared` found for type `winit::event::Event<'_, _>` in the current scope
--> src\utility\window.rs:75:26
|
75 | | Event::EventsCleared => {
| ^^^^^^^^^^^^^
| |
| variant or associated item not found in `winit::event::Event<'_, _>`
| help: there is a variant with a similar name: `MainEventsCleared`
unknownue commented
This is caused by the API change of winit v0.20.0
. It may take me some days to fix it.
Sorrien commented
What version could I downgrade to fix it temporarily?
…On Thu, Jan 9, 2020, 6:18 AM unknownue ***@***.***> wrote:
This is caused by the API change of winit v0.20.0. It may take me some
days to fix it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27?email_source=notifications&email_token=ACARZYUC5ZYADHWPIVMCVB3Q44BYZA5CNFSM4KEGRP72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIP6TKA#issuecomment-572516776>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACARZYR4HAAI3UL264XMBKTQ44BYZANCNFSM4KEGRP7Q>
.
unknownue commented
Sometime the version you specify in Cargo.toml
may not match the actual version written in Cargo.lock
. You can specify winit
version to 0.20.0-alpha4
. The compilation is work for this version on my computer. If it doesn't work, try to specify other version from 0.20.0-alpha3
to 0.20.0-alpha6
.
[dependencies]
winit = "=0.20.0-alpha4" # Use '=' to specify the exact version you want
Sorrien commented
That worked for me