Skip to content

chore: apply clippy lints#58

Merged
datdenkikniet merged 2 commits into
datdenkikniet:mainfrom
weriomat:clippy
Jul 12, 2026
Merged

chore: apply clippy lints#58
datdenkikniet merged 2 commits into
datdenkikniet:mainfrom
weriomat:clippy

Conversation

@weriomat

Copy link
Copy Markdown
Contributor

There lints are a fix from the "normal" lints as well as the pedantic lints.
Please note that I did not fix all pedantic lints.

@datdenkikniet

Copy link
Copy Markdown
Owner

Ah, this is a good addition, thank you for the initiative!

I realized that the CI is not stringent enough: it runs checks on all kinds of combinations, but is fine with any warnings (this PR introduces a single one: renaming the sometimes-unused _password to password). I've added that to the CI now, so please rebase on top of that change to see which parts of this PR we want to keep :)

Additionally, if you would add a clippy run to the CI in combination with this PR I'd appreciate it.

I.e.

           - "-p ipmi-rs --no-default-features --examples"
     steps:
       - uses: actions/checkout@v5
-      - name: Check a package with specific feature combination.
+      - name: cargo check a package with specific feature combination.
+        run: CARGO_BUILD_WARNINGS=deny cargo check --locked ${{ matrix.command }}
+      - name: cargo clippy a package with specific feature combination.
         run: CARGO_BUILD_WARNINGS=deny cargo clippy --locked ${{ matrix.command }}
 
   test:

@weriomat

Copy link
Copy Markdown
Contributor Author

Rebased onto main

@weriomat

Copy link
Copy Markdown
Contributor Author

Note that if I add CI checks this PR depends on #57

@weriomat

Copy link
Copy Markdown
Contributor Author

Added ci checks for clippy.
Waiting for merge of #57 in order to rebase onto main than :)

@weriomat

Copy link
Copy Markdown
Contributor Author

Fixed typo in Ci

datdenkikniet
datdenkikniet previously approved these changes Jul 12, 2026
weriomat added 2 commits July 12, 2026 19:36
There lints are a fix from the "normal" lints as well as the pedantic
lints
According to the
[documentation](https://doc.rust-lang.org/stable/clippy/continuous_integration/index.html#continuous-integration)
`-Dwarnings` should be used in order for clippy to fail in case of
errors. The documentation on using workspaces with clippy can be found
[here](https://doc.rust-lang.org/stable/clippy/usage.html#workspaces).
As the check phase does not use `--no-deps` flag it is neither used here
which results in linting dependencies in addition to the crate itself
(meaning the `ipmi-rs-core` crate gets linted multiple times).
@weriomat

Copy link
Copy Markdown
Contributor Author

Apparently I forgot to push the commit where I appended the fix (in the previous PR).
Fixed now

@datdenkikniet
datdenkikniet merged commit 317300d into datdenkikniet:main Jul 12, 2026
36 checks passed
@datdenkikniet

Copy link
Copy Markdown
Owner

Thanks!

@weriomat

Copy link
Copy Markdown
Contributor Author

Any chance a new release can be made soon?

@datdenkikniet

datdenkikniet commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Yes, now is as good a time as any! Release train on the way in #60

Edit: and now everything should be available through crates.io as well :)

@weriomat

Copy link
Copy Markdown
Contributor Author

Thank you !

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