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 #1918

Merged
merged 1 commit into from
Apr 4, 2025
Merged

Fix clippy #1918

merged 1 commit into from
Apr 4, 2025

Conversation

EliahKagan
Copy link
Member

@EliahKagan EliahKagan commented Apr 4, 2025

clippy has recently begun to fail with:

error: unnecessary semicolon
  --> gix-transport/src/client/blocking_io/http/traits.rs:30:18
   |
30 |                 };
   |                  ^ help: remove
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
   = note: `-D clippy::unnecessary-semicolon` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_semicolon)]`

While it looks like this might first have been observed in #1917, it is unrelated to any change there. It happens when the current tip of main (4660f7a) is rerun, as observed in:
https://github.com/EliahKagan/gitoxide/actions/runs/14254079128/job/39958292846


This is initially empty as I'm double checking that it does happen. I'll amend with a fix shortly.

Edit: Yes, it reproduces here. I've amended to add the fix.

@Byron
Copy link
Member

Byron commented Apr 4, 2025

Thank you. Please feel free to merge this when it's ready.

@EliahKagan EliahKagan marked this pull request as ready for review April 4, 2025 01:22
@EliahKagan EliahKagan enabled auto-merge April 4, 2025 01:22
@EliahKagan
Copy link
Member Author

EliahKagan commented Apr 4, 2025

There's at least one other failure, which clippy didn't get to after the first one. I'll fix it too, and any others.

Edit: Running just clippy-fix and etc/copy-packetline.sh fixed it the rest of the way.

This removes some extra unnecessary semicolons that `clippy` has
recently begun to catch, causing CI to fail with errors such as:

    error: unnecessary semicolon
      --> gix-transport/src/client/blocking_io/http/traits.rs:30:18
       |
    30 |                 };
       |                  ^ help: remove
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
       = note: `-D clippy::unnecessary-semicolon` implied by `-D warnings`
       = help: to override `-D warnings` add `#[allow(clippy::unnecessary_semicolon)]`

While it looks like this might first have been observed in GitoxideLabs#1917,
it is unrelated to any change there. It happens when the current
tip of main (4660f7a) is rerun, as observed in:
https://github.com/EliahKagan/gitoxide/actions/runs/14254079128/job/39958292846

This runs `just clippy-fix` and `etc/copy-packetline.sh` to fix it.
@EliahKagan EliahKagan merged commit 4d3946f into GitoxideLabs:main Apr 4, 2025
21 checks passed
@EliahKagan EliahKagan deleted the fix-clippy branch April 4, 2025 02:05
@EliahKagan EliahKagan mentioned this pull request Apr 4, 2025
3 tasks
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