Skip to content

Commit

Permalink
Fix some uses of NoCell in doc tests (#956)
Browse files Browse the repository at this point in the history
This shouldn't have made it onto `main`, but was able to as a result of
the bug described in #947.

This will need to merge before #948 can merge.
  • Loading branch information
joshlf committed Feb 26, 2024
1 parent 9421346 commit a309a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ safety_comment! {
/// e.g.:
///
/// ```
/// # use zerocopy_derive::FromZeros;
/// # use zerocopy_derive::{FromZeros, NoCell};
/// #[derive(FromZeros)]
/// struct MyStruct {
/// # /*
Expand All @@ -1045,7 +1045,7 @@ safety_comment! {
/// # */
/// }
///
/// #[derive(FromZeros)]
/// #[derive(FromZeros, NoCell)]
/// union MyUnion {
/// # variant: u8,
/// # /*
Expand Down Expand Up @@ -1677,7 +1677,7 @@ pub use FromZeros as FromZeroes;
/// e.g.:
///
/// ```
/// # use zerocopy_derive::{FromBytes, FromZeros};
/// # use zerocopy_derive::{FromBytes, FromZeros, NoCell};
/// #[derive(FromBytes)]
/// struct MyStruct {
/// # /*
Expand Down Expand Up @@ -1711,7 +1711,7 @@ pub use FromZeros as FromZeroes;
/// # */
/// }
///
/// #[derive(FromBytes)]
/// #[derive(FromBytes, NoCell)]
/// union MyUnion {
/// # variant: u8,
/// # /*
Expand Down

0 comments on commit a309a36

Please sign in to comment.