We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: Broken since:
Working in:
rustc version: rustc 1.59.0 (9d1b2106e 2022-02-23)
rustc 1.59.0 (9d1b2106e 2022-02-23)
relevant settings: All default except for features which have sqlite,postgresql,mysql configured.
sqlite,postgresql,mysql
codebase: https://github.com/dani-garcia/vaultwarden (Branch: main)
Getting the following errors: utils.rs: expected Pin<Box<dyn Future<Output = ()> + Send, Global>>, found Pin<Box<impl Future<Output = ()>, Global>>
expected Pin<Box<dyn Future<Output = ()> + Send, Global>>, found Pin<Box<impl Future<Output = ()>, Global>>
admin.rs: expected Pin<Box<dyn Future<Output = Outcome<Referer, (Status, ()), ()>> + Send, Global>>, found Pin<Box<impl Future<Output = Outcome<Referer, (Status, ()), ()>>, Global>>
expected Pin<Box<dyn Future<Output = Outcome<Referer, (Status, ()), ()>> + Send, Global>>, found Pin<Box<impl Future<Output = Outcome<Referer, (Status, ()), ()>>, Global>>
Original code (admin.rs#L89):
struct Referer(Option<String>); #[rocket::async_trait] impl<'r> FromRequest<'r> for Referer { type Error = (); async fn from_request(request: &'r Request<'_>) -> request::Outcome<Self, Self::Error> { Outcome::Success(Referer(request.headers().get_one("Referer").map(str::to_string))) } }
Looking at the expanded code it does seem to be in there:
::core::pin::Pin< Box< dyn ::core::future::Future<Output = request::Outcome<Self, Self::Error>> + ::core::marker::Send + 'async_trait, >, >
Maybe linked to: rust-lang/rust#95267 ?
The text was updated successfully, but these errors were encountered:
Duplicate of #11815
Sorry, something went wrong.
Sorry for the noise.
No problem :)
No branches or pull requests
rust-analyzer version:
Broken since:
Working in:
rustc version:
rustc 1.59.0 (9d1b2106e 2022-02-23)
relevant settings: All default except for features which have
sqlite,postgresql,mysql
configured.codebase: https://github.com/dani-garcia/vaultwarden (Branch: main)
Getting the following errors:
utils.rs:
expected Pin<Box<dyn Future<Output = ()> + Send, Global>>, found Pin<Box<impl Future<Output = ()>, Global>>
admin.rs:
expected Pin<Box<dyn Future<Output = Outcome<Referer, (Status, ()), ()>> + Send, Global>>, found Pin<Box<impl Future<Output = Outcome<Referer, (Status, ()), ()>>, Global>>
Original code (admin.rs#L89):
Looking at the expanded code it does seem to be in there:
Maybe linked to: rust-lang/rust#95267 ?
The text was updated successfully, but these errors were encountered: