fix safety comments

This commit is contained in:
Jacob Rosenthal 2021-11-03 18:19:43 -07:00
parent 511c5cb892
commit 9a6c2de4ea

View File

@ -67,7 +67,7 @@ impl<'d, T: Instance> PwmSeq<'d, T> {
///
/// The returned API is safe unless you use `mem::forget` (or similar safe
/// mechanisms) on stack allocated buffers which which have been passed to
/// [`send()`](Pwm::send) or [`receive`](Pwm::receive).
/// [`new()`](PwmSeq::new).
#[allow(unused_unsafe)]
pub fn new(
_pwm: impl Unborrow<Target = T> + 'd,
@ -285,7 +285,7 @@ impl<'d, T: Instance> Pwm<'d, T> {
///
/// The returned API is safe unless you use `mem::forget` (or similar safe
/// mechanisms) on stack allocated buffers which which have been passed to
/// [`send()`](Pwm::send) or [`receive`](Pwm::receive).
/// [`new()`](Pwm::new).
#[allow(unused_unsafe)]
pub fn new(
_pwm: impl Unborrow<Target = T> + 'd,