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

Lint errors with Rust 1.73 beta (part 2) #678

Closed
edmorley opened this issue Sep 21, 2023 · 0 comments · Fixed by #679
Closed

Lint errors with Rust 1.73 beta (part 2) #678

edmorley opened this issue Sep 21, 2023 · 0 comments · Fixed by #679
Assignees

Comments

@edmorley
Copy link
Member

edmorley commented Sep 21, 2023

The various lint errors seen with Rust 1.73 were handled previously in #671 / #672.

However, some more are now present after #666:

$ cargo clippy --all-targets
warning: matching over `()` is more explicit
  --> libcnb-test/tests/integration_test.rs:74:12
   |
74 |         Ok(_) => panic!("expected a failure"),
   |            ^ help: use `()` instead of `_`: `()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
note: the lint level is defined here
  --> libcnb-test/tests/integration_test.rs:8:9
   |
8  | #![warn(clippy::pedantic)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::ignored_unit_patterns)]` implied by `#[warn(clippy::pedantic)]`

warning: matching over `()` is more explicit
   --> libcnb-test/tests/integration_test.rs:154:12
    |
154 |         Ok(_) => panic!("expected a failure"),
    |            ^ help: use `()` instead of `_`: `()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns

GUS-W-14160797.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant