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

Merged
merged 7 commits into from
Jun 4, 2024
Merged

Fix clippy lints #60

merged 7 commits into from
Jun 4, 2024

Conversation

faern
Copy link
Member

@faern faern commented May 29, 2024

Clippy had a thing or two to say about this crate. I noticed it in #57, but I decided to make a dedicated PR for it to keep the PRs more focused and smaller.


This change is Reviewable

@faern faern requested a review from Serock3 May 29, 2024 19:36
Copy link

@Serock3 Serock3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 1 of 1 files at r4, 1 of 1 files at r5, 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @faern)


nftnl/src/lib.rs line 120 at r6 (raw file):

    ///
    /// The caller must pass a `buf` with enough space for the largest possible netlink message.
    /// This size can be obtained with `nft_nlmsg_maxsize()`.

A silly nit-pick, but maybe we could use proper doc-links, i.e. [`nft_nlmsg_maxsize`] instead of `nft_nlmsg_maxsize()`?

Copy link
Member Author

@faern faern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 4 of 6 files reviewed, all discussions resolved (waiting on @Serock3)


nftnl/src/lib.rs line 120 at r6 (raw file):

Previously, Serock3 (Sebastian Holmin) wrote…

A silly nit-pick, but maybe we could use proper doc-links, i.e. [`nft_nlmsg_maxsize`] instead of `nft_nlmsg_maxsize()`?

That's a small but nice improvement. Fixed!

Copy link

@Serock3 Serock3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r7, 1 of 1 files at r8, 1 of 1 files at r9, 1 of 1 files at r10, 1 of 1 files at r11, 1 of 1 files at r12, 1 of 1 files at r13, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@faern faern merged commit a6138a7 into main Jun 4, 2024
1 check passed
@faern faern deleted the fix-clippy-lints branch June 4, 2024 09:00
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