Skip to content

Commit

Permalink
add doc to newtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Easyoakland committed Nov 5, 2024
1 parent 350c4ff commit f8c46c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-wifi/src/wifi/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl<T: sealed::Event + 'static> EventExt for T {}
macro_rules! impl_wifi_event {
// no data
($newtype:ident) => {
/// See [`WifiEvent`].
#[derive(Copy, Clone)]
pub struct $newtype;
impl sealed::Event for $newtype {
Expand All @@ -90,6 +91,7 @@ macro_rules! impl_wifi_event {
// data
($newtype:ident, $data:ident) => {
pub use esp_wifi_sys::include::$data;
/// See [`WifiEvent`].
#[derive(Copy, Clone)]
pub struct $newtype(pub $data);
impl sealed::Event for $newtype {
Expand Down

0 comments on commit f8c46c6

Please sign in to comment.