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 clippy lints #123

Merged
merged 4 commits into from Jan 28, 2023
Merged

Fix clippy lints #123

merged 4 commits into from Jan 28, 2023

Conversation

vbrandl
Copy link
Contributor

@vbrandl vbrandl commented Jan 28, 2023

This PR fixes some clippy lints. I just ran cargo clippy --fix to apply the autofixes.

Some of those lints will be present in the generated templates and cause CI pipelines that run clippy, to fail: https://github.com/vbrandl/petnames-generator/actions/runs/4029359610/jobs/6927176057

Would you be interested in a scheduled GitHub Action to run clippy every 24h or so, even if there were no new commits, to catch stuff like this early? If so, I could create that one. It's how I stumbled across the problem.

vbrandl added a commit to vbrandl/hoc that referenced this pull request Jan 28, 2023
Fixes local lint violations. For the final fix, I have to wait for kaj/ructe#123
@kaj
Copy link
Owner

kaj commented Jan 28, 2023

Thanks for the contribution! I fixed the string capture issue before I noticed this PR, but I'll merge the remaining fix.

@kaj kaj merged commit 2118e24 into kaj:master Jan 28, 2023
@vbrandl vbrandl deleted the fix/clippy-lints branch January 28, 2023 20:05
kaj added a commit that referenced this pull request Jul 22, 2023
* Added a check that no more than one of the http-types, mime02, or
  mime03 features are enabled (PR #124).  Thanks @rustafarian-dev.
* Changed the writer type from `W: &mut Write` to just `W: Write` (PR #125).
  Thanks @kornelski!
* Fixed handling of `MULTI_WORD_CONSTANTS` in templates (Issue #129, PR #130).
  Thanks @wezm!
* More ways to create a working rust symbol name from a "strange"
  static file name.  Illegal characters are replaced by `_`, and if
  the file name starts with a number it is prefixed with `n` (Issue
  #82, PR #132).  Thanks @Aedius for reporting!
* Fixed more clippy lints (PR #123, #127).  Thanks @vbrandl!
* Updated `rsass` to 0.28.0 and `itertools` to 0.11.0.
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.

None yet

2 participants