fix safety comments
This commit is contained in:
parent
511c5cb892
commit
9a6c2de4ea
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue