Skip to content

Commit

Permalink
Avoid missing docs warning on pub extern crate
Browse files Browse the repository at this point in the history
Due to rust-lang/rust#112308, the public
re-export of the pac will trigger a missing docs warning in rust
1.71.0.

This is bogus, as the doc string would not be shown in the rendered
docs anyway. However, the warning would be annoying, so add a short
doc string to the item.
  • Loading branch information
jannic committed Jul 11, 2023
1 parent 6c74c62 commit b10372d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rp2040-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ extern crate embedded_hal as hal;
extern crate nb;
pub use paste;

/// Re-export of the PAC
pub extern crate rp2040_pac as pac;

#[macro_use]
Expand Down

0 comments on commit b10372d

Please sign in to comment.