fix(next): linting issues from Rust 1.80 #582
Merged
Add this suggestion to a batch that can be applied as a single commit.
2FC4
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This applies fixes for issues that are introduced by the new version of Rust: 1.80.
These are the following:
Lazy doc continuation:
To avoid confusion, this means that multilines now need to be explicit. The two cases where that is the case today is for the docs on the
async-stripe/src/lib.rs
where we use>
, and when generating doc comments.The doc comments specifically, we break the line if is too long. But we don't verify that we are breaking a list item. These should be indented differently. Check bebd57e and 20f3ceb.
For example, on
generated/async-stripe-shared/src/invoice.rs
it there is this example that should be different on 1.80:Checked cfg names: Now Rust verify that the used
cfg
are defined in the Cargo.toml. Which is not the case for multiple ones onasync-stripe-webhook
. Check c94b754This still needs #581 so that it can be compiled.Merged! ✅I did not run the openapi generation (seems like there are quite a few changes since the latest version available) that will fix the formatting of the docs comments. Not sure if the run of it should be part of this PR or if is fine to run afterwards.Nvm 😅 Just noticed that could run for thecurrent
version. So onlyinvoice.rs
has changed. Check 74cfc03.Checklist
cargo make fmt