Skip to content

lib: enable doc_cfg only when building documentation#76

Merged
jlrivasp merged 1 commit intointel:mainfrom
psurply:fix/doc_cfg
Mar 16, 2026
Merged

lib: enable doc_cfg only when building documentation#76
jlrivasp merged 1 commit intointel:mainfrom
psurply:fix/doc_cfg

Conversation

@psurply
Copy link
Contributor

@psurply psurply commented Mar 10, 2026

This change enables the doc_cfg feature only when building the documentation as it is not needed in other contexts. It removes the following warning reported by clippy:

warning: feature `doc_cfg` is declared but not used
 --> src/lib.rs:5:12
  |
5 | #![feature(doc_cfg)]
  |            ^^^^^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

This change enables the doc_cfg feature only when building the
documentation as it is not needed in other contexts.
It removes the following warning reported by clippy:

    warning: feature `doc_cfg` is declared but not used
     --> src/lib.rs:5:12
      |
    5 | #![feature(doc_cfg)]
      |            ^^^^^^^
      |
      = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

Signed-off-by: Surply, Pierre <pierre.surply@intel.com>
@psurply psurply marked this pull request as ready for review March 10, 2026 15:01
@psurply psurply requested a review from jlrivasp March 11, 2026 13:18
Copy link
Contributor

@jlrivasp jlrivasp left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR, it looks good to me!

@jlrivasp jlrivasp merged commit 8af8d1a into intel:main Mar 16, 2026
5 checks passed
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