Skip to content

Use of ioctl!() in a crate with [warn(missing_docs)] #571

Closed
@agrover

Description

@agrover

We'd like to enable [warn(missing_docs)] for our crate that uses nix, but when doing so we get this warning:

   Compiling devicemapper v0.4.3 (file:///home/agrover/git/stratis/devicemapper-rs)
warning: missing documentation for a function
  --> src/util.rs:11:1
   |
11 | ioctl!(read blkgetsize64 with 0x12, 114; u64);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: lint level defined here
  --> src/lib.rs:43:9
   |
43 | #![warn(missing_docs)]
   |         ^^^^^^^^^^^^
   = note: this error originates in a macro outside of the current crate

    Finished dev [unoptimized + debuginfo] target(s) in 1.58 secs

I don't see a way in my nix-using crate to silence this (without disabling the warning, of course!) Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions