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

lib: fix clippy warning, cargo fmt #16

Merged
merged 2 commits into from
Nov 28, 2023
Merged

lib: fix clippy warning, cargo fmt #16

merged 2 commits into from
Nov 28, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Nov 28, 2023

The GitHub actions workflows for this repo had been deactivated from inactivity. I re-enabled them now and updated the branch protection rule for main to require each check pass. Doing so caught a small clippy finding I accidentally introduced in #13 It's also flagging the cargo fmt deviation that I noticed and fixed in #14. This branch fixes both.

Fixes:
```
error: unused import: `super::*`
   --> src/lib.rs:542:9
    |
542 |     use super::*;
    |         ^^^^^^^^
    |
help: consider adding a `#[cfg(test)]` to the containing module
   --> src/lib.rs:541:1
    |
541 | mod tests {
    | ^^^^^^^^^
    = note: `-D unused-imports` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_imports)]`
```
@cpu cpu self-assigned this Nov 28, 2023
@cpu cpu changed the title lib: fix clippy warning lib: fix clippy warning, cargo fmt Nov 28, 2023
@cpu cpu added this pull request to the merge queue Nov 28, 2023
Merged via the queue into rustls:main with commit cfcb4b8 Nov 28, 2023
11 checks passed
@cpu cpu deleted the cpu-fix-clippy branch November 28, 2023 22:04
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.

2 participants