Skip to content

State in Rocket 0.5.1 and Rust 2024 edition #2917

Closed Answered by raif-s-naffah
raif-s-naffah asked this question in Questions
Discussion options

You must be logged in to vote

Following up on my initial post, it looks like it's too early to switch my server to the 2024 edition.

The best i can do for now is to add #![warn(rust_2024_compatibility)] to the lib.rs and fix the warnings that are emitted. Specifically for the handler i mentioned in my initial post changing the return type to...

Result<EitherOr<impl Stream<Item = MultipartSection<'static>> + use<>>, Status> {

solves the issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raif-s-naffah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant