Skip to content
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

Fix warnings as of rust 1.73.0 #42

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

Ironedde
Copy link
Contributor

@Ironedde Ironedde commented Oct 20, 2023

All workspace members are already edition 2021 (implying resolver 2).
Setting it on workspace to silence warnings.

Fixed clippy recommendation regarding filter_map, see clippy lint filter_map_bool_then for details.

Thank you!

Thank you for your contribution.
Please make sure that your submission includes the following:

Must

  • The code compiles without errors or warnings.
  • All tests pass and in the best case you also added new tests.
  • cargo +stable fmt was run.
  • cargo +stable clippy yields no warnings.
  • Your changes were added to the CHANGELOG.md in the proper section.
  • You add a description of your work to this PR.
  • You added proper docs (in code, rustdoc and README.md) for your
    newly added features and code.

@Ironedde Ironedde self-assigned this Oct 20, 2023
@Ironedde Ironedde changed the title Fix clippy warnings as of rustc 1.73.0 Fix clippy warnings as of rust 1.73.0 Oct 20, 2023
@Ironedde Ironedde changed the title Fix clippy warnings as of rust 1.73.0 Fix warnings as of rust 1.73.0 Oct 20, 2023
@Ironedde Ironedde marked this pull request as ready for review October 20, 2023 14:44
@Ironedde Ironedde requested a review from a team as a code owner October 20, 2023 14:44
@Ironedde Ironedde mentioned this pull request Oct 20, 2023
7 tasks
nilfit
nilfit previously requested changes Oct 21, 2023
mcan/CHANGELOG.md Outdated Show resolved Hide resolved
Edvin Åkerfeldt added 2 commits October 22, 2023 18:36
Fixed clippy recommendation regarding `filter_map`, see clippy lint
`filter_map_bool_then` for details.
Resolver need to be set on workspace level.

See rust-lang/cargo#10112
Copy link
Collaborator

@epontan epontan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM 👍

@epontan epontan dismissed nilfit’s stale review October 23, 2023 12:51

Change request resolved

@Ironedde Ironedde requested a review from a team October 23, 2023 12:53
@Ironedde Ironedde merged commit 7de90dc into GrepitAB:master Oct 23, 2023
Ironedde pushed a commit to Ironedde/mcan-clone that referenced this pull request Oct 24, 2023
- Added
 - Add `Can::aux::initialization_mode` (GrepitAB#41)

- Changed
 - Fix some issues with watermark sizes for Rx FIFOs and Tx Event FIFO (GrepitAB#43)
 - Adhere to `filter_map_bool_then` clippy lint (GrepitAB#42)
@Ironedde Ironedde mentioned this pull request Oct 24, 2023
Ironedde pushed a commit to Ironedde/mcan-clone that referenced this pull request Oct 24, 2023
- Added
 - Add `Can::aux::initialization_mode` (GrepitAB#41)

- Changed
 - Fix some issues with watermark sizes for Rx FIFOs and Tx Event FIFO (GrepitAB#43)
 - Adhere to `filter_map_bool_then` clippy lint (GrepitAB#42)
Ironedde added a commit that referenced this pull request Oct 24, 2023
### Added
 - Add `Can::aux::initialization_mode` (#41)

### Changed
- Fix some issues with watermark sizes for Rx FIFOs and Tx Event FIFO
(#43)
 - Adhere to `filter_map_bool_then` clippy lint (#42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants