diff options
author | 2023-01-22 06:57:56 +0000 | |
---|---|---|
committer | 2023-01-22 06:57:56 +0000 | |
commit | b0bda53e4e650dccb1a30718ce8dbefef6584ad0 (patch) | |
tree | 066088a7df2514af02ee0cebe6646e41efddf963 /examples/not-sync.rs | |
parent | 86ce8919aec4623a0816b28f1adcd86db33689c8 (diff) | |
parent | 3f74f3b8459fdd451707511954a6ea3d128aabe3 (diff) | |
download | rtic-b0bda53e4e650dccb1a30718ce8dbefef6584ad0.tar.gz rtic-b0bda53e4e650dccb1a30718ce8dbefef6584ad0.tar.zst rtic-b0bda53e4e650dccb1a30718ce8dbefef6584ad0.zip |
Merge #689
689: Missing docs: Improve #[doc] generation r=korken89 a=AfoHT
Improve RTIC doc handling
Enable use of
```
#![deny(missing_docs)]
```
and makes the cargo doc output more useful
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r-- | examples/not-sync.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs index aa79ad56..68af04a6 100644 --- a/examples/not-sync.rs +++ b/examples/not-sync.rs @@ -2,13 +2,16 @@ // #![deny(unsafe_code)] #![deny(warnings)] +#![deny(missing_docs)] #![no_main] #![no_std] use core::marker::PhantomData; use panic_semihosting as _; +/// Not sync pub struct NotSync { + /// Phantom action _0: PhantomData<*const ()>, } @@ -22,6 +25,7 @@ mod app { #[shared] struct Shared { + /// This resource is not Sync shared: NotSync, } |