You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
The crate is not compatible with recent master version of rocket (probably v0.5) which has the async runtime.
Could you please add this support?
Currently I have compilation error:
error[E0053]: method `authorizing` has an incompatible type for trait
--> src/main.rs:44:5
|
44 | fn authorizing(request: &'a Request<'r>, authorization: Option<&'a str>) -> Option<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rocket::request::request::Request`, found struct `rocket::Request`
|
= note: expected fn pointer `fn(&'a rocket::request::request::Request<'r>, std::option::Option<_>) -> std::option::Option<_>`
found fn pointer `fn(&'a rocket::Request<'r>, std::option::Option<_>) -> std::option::Option<_>`
= note: perhaps two different versions of crate `rocket` are being used?
Steps to reproduce:
Change a rocket to git version in Cargo.toml: rocket = { git = "https://github.com/SergioBenitez/Rocket" }
and set in project's [package] section: edition = "2018"
Hi!
The crate is not compatible with recent master version of rocket (probably v0.5) which has the async runtime.
Could you please add this support?
Currently I have compilation error:
Steps to reproduce:
Change a rocket to git version in Cargo.toml:
rocket = { git = "https://github.com/SergioBenitez/Rocket" }
and set in project's
[package]
section:edition = "2018"
ps. maybe this code would be useful when doing transition:
https://github.com/Weasy666/rocket_airlock
The text was updated successfully, but these errors were encountered: