diff options
| author | Jacob Rosenthal <[email protected]> | 2021-11-03 18:19:43 -0700 |
|---|---|---|
| committer | Jacob Rosenthal <[email protected]> | 2021-11-03 18:19:43 -0700 |
| commit | 9a6c2de4ea473c06e1bb5731d51c9e9f64a6ba80 (patch) | |
| tree | 0dae2bfbf76073ad3d3ae238f4639047c487bbea | |
| parent | 511c5cb8927f1c55c4e006d03fa64fb0c00e154d (diff) | |
fix safety comments
| -rw-r--r-- | embassy-nrf/src/pwm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index c054addfb..ccf0e70af 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs | |||
| @@ -67,7 +67,7 @@ impl<'d, T: Instance> PwmSeq<'d, T> { | |||
| 67 | /// | 67 | /// |
| 68 | /// The returned API is safe unless you use `mem::forget` (or similar safe | 68 | /// The returned API is safe unless you use `mem::forget` (or similar safe |
| 69 | /// mechanisms) on stack allocated buffers which which have been passed to | 69 | /// mechanisms) on stack allocated buffers which which have been passed to |
| 70 | /// [`send()`](Pwm::send) or [`receive`](Pwm::receive). | 70 | /// [`new()`](PwmSeq::new). |
| 71 | #[allow(unused_unsafe)] | 71 | #[allow(unused_unsafe)] |
| 72 | pub fn new( | 72 | pub fn new( |
| 73 | _pwm: impl Unborrow<Target = T> + 'd, | 73 | _pwm: impl Unborrow<Target = T> + 'd, |
| @@ -285,7 +285,7 @@ impl<'d, T: Instance> Pwm<'d, T> { | |||
| 285 | /// | 285 | /// |
| 286 | /// The returned API is safe unless you use `mem::forget` (or similar safe | 286 | /// The returned API is safe unless you use `mem::forget` (or similar safe |
| 287 | /// mechanisms) on stack allocated buffers which which have been passed to | 287 | /// mechanisms) on stack allocated buffers which which have been passed to |
| 288 | /// [`send()`](Pwm::send) or [`receive`](Pwm::receive). | 288 | /// [`new()`](Pwm::new). |
| 289 | #[allow(unused_unsafe)] | 289 | #[allow(unused_unsafe)] |
| 290 | pub fn new( | 290 | pub fn new( |
| 291 | _pwm: impl Unborrow<Target = T> + 'd, | 291 | _pwm: impl Unborrow<Target = T> + 'd, |
