-
Notifications
You must be signed in to change notification settings - Fork 20
varlink_generator: Fix generating code which compiles with Rust 2024 #122
New issue
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
Conversation
1a1431b
to
221c379
Compare
Fixed. |
09fb357
to
981686c
Compare
Ah, there is a second one. Fixed. |
Pull Request Test Coverage Report for Build 14084890847Details
💛 - Coveralls |
The linting reports are unrelated to this PR. |
Yeah but CI needs to pass to merge. Could you please also fix the lints as well (in a separate commit (not PR) please)? Otherwise, I'll do it at some point and then rebase/merge this. |
Ok, I will look into it. |
981686c
to
23c2478
Compare
Done. |
--> varlink/src/lib.rs:1056:53 | 1056 | ... .map_err(map_context!()) | _______________________________________________^ 1057 | | ... .map_err(Error::from)?, | |___________________________________________^ help: consider removing | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `-D clippy::useless-conversion` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`
This generates code which also compiles with Rust 2024. See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html Fixes varlink#121
Head branch was pushed to by a user without write access
23c2478
to
1f826c4
Compare
I didn't run |
This generates code which also compiles with Rust 2024.
See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html
Fixes #121