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

style: make clippy happy #2518

Merged
merged 1 commit into from
Sep 27, 2024
Merged

style: make clippy happy #2518

merged 1 commit into from
Sep 27, 2024

Conversation

SteveLauC
Copy link
Member

What does this PR do

Fixes the Clippy error that happened in this PR: https://github.com/nix-rust/nix/actions/runs/11051131303/job/30700376034

error: empty lines after outer attribute
    --> src/sys/socket/mod.rs:1799:1
     |
1799 | / /// incoming ICMP packet.
1800 | |
1801 | | // On aarch64 linux using recvmmsg and trying to get hardware/kernel timestamps might not
1802 | | // always produce the desired results - see https://github.com/nix-rust/nix/pull/1744 for more
1803 | | // details
1804 | |
     | |_
1805 |   #[cfg(any(linux_android, target_os = "freebsd", target_os = "netbsd"))]
1806 | / pub fn recvmmsg<'a, XS, S, I>(
1807 | |     fd: RawFd,
1808 | |     data: &'a mut MultiHeaders<S>,
1809 | |     slices: XS,
...    |
1814 | |     XS: IntoIterator<Item = &'a mut I>,
1815 | |     I: AsMut<[IoSliceMut<'a>]> + 'a,
     | |____________________________________- the attribute applies to this function
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
     = note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
     = help: if the empty lines are unintentional remove them

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC SteveLauC added this pull request to the merge queue Sep 27, 2024
Merged via the queue into nix-rust:master with commit d6d2405 Sep 27, 2024
39 checks passed
@SteveLauC SteveLauC deleted the style/clippy branch September 27, 2024 01:10
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.

1 participant