Skip to content

Task: rustfmt #1429

Closed
Closed

Description

@dhardy

We should apply rustfmt to the project, probably with #[rustfmt::skip] in some places, and add a CI check. It's going to conflict with a bunch of open PRs, but we always have some.

@MichaelOwenDyer are you interested?

Activity

  1. MichaelOwenDyer commented on Apr 3, 2024

    @MichaelOwenDyer
    Member

    Sure thing. How do you feel about a pre-commit hook as well?

  2. dhardy commented on Apr 3, 2024

    @dhardy
    MemberAuthor

    Thanks. While format-before-commit is good practice, I'm not keen on the idea of tools changing code right before a commit, so no.

  3. dhardy commented on Apr 3, 2024

    @dhardy
    MemberAuthor

    Sorry, it's probably worth getting #1424 sorted before a more general reformat.

  4. newpavlov commented on Apr 3, 2024

    @newpavlov
    Member

    It's also worth to add Clippy job to CI (with a fixed toolchain version) and fix existing warnings (29 on current Nightly) in the same PR.

  5. MichaelOwenDyer commented on Apr 4, 2024

    @MichaelOwenDyer
    Member

    I ran rustfmt locally to see how severe the changes would be and it looks generally quite manageable, I only identified a couple files where we might want to sprinkle in #[rustfmt::skip]. I'll wait for #1424 to be merged before opening a PR.

    It's also worth to add Clippy job to CI (with a fixed toolchain version) and fix existing warnings (29 on current Nightly) in the same PR.

    Good idea 👍🏽

  6. dhardy commented on May 8, 2024

    @dhardy
    MemberAuthor

    We should merge #1447 once CI is done, then we can work on this. I can do so, but since @newpavlov offered?

    Additional suggestion: move the rand_core traits into a private sub-module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyParticipation: easy job

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions