Skip to content

Cargo clippy deny 2025 05 23 #94

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

hnez
Copy link
Member

@hnez hnez commented May 23, 2025

We had CI build failures today because cargo deny and cargo clippy have learned new tricks.

Acknowledge that async-std and crates based on it are deprecated and apply a change suggested by cargo clippy.

hnez added 2 commits May 23, 2025 09:49
The advisory[1] says the following about surf:

    The last release is over three years old (from 2021), the crate
    depends on the deprecated `async-std` crate and on a very old version
    of `rustls` for TLS support.

We use `surf` _because_ it is `async-std` based and we use `async-std`
throughout our code base, which means we will throw it out once we bite
the bullet and replace `async-std`.

We only use surf to poll the local `lxa-iobus` REST API, so we do not have
to fear possible security issue so much.

[1]: https://rustsec.org/advisories/RUSTSEC-2025-0036

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
This makes the code a bit easier to read. The change is based on a clippy
lint added in rust 1.87.0.

[1]: https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez hnez requested a review from SmithChart May 23, 2025 08:05
@hnez hnez merged commit e990101 into linux-automation:main May 27, 2025
10 checks passed
@hnez hnez deleted the cargo-clippy-deny-2025-05-23 branch May 27, 2025 09:02
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