Removed unnecessary lifetime naming

This commit is contained in:
Cameron
2023-07-05 19:01:28 +02:00
parent 7d3eb6463a
commit 8ee2f50b8c
4 changed files with 23 additions and 23 deletions

View File

@ -96,7 +96,7 @@ impl<'d, G: Group> PpiGroup<'d, G> {
/// Get a reference to the "enable all" task.
///
/// When triggered, it will enable all the channels in this group.
pub fn task_enable_all<'s: 'd>(&'d self) -> Task<'s> {
pub fn task_enable_all(&self) -> Task<'d> {
let n = self.g.number();
Task::from_reg(&regs().tasks_chg[n].en)
}
@ -104,7 +104,7 @@ impl<'d, G: Group> PpiGroup<'d, G> {
/// Get a reference to the "disable all" task.
///
/// When triggered, it will disable all the channels in this group.
pub fn task_disable_all<'s: 'd>(&self) -> Task<'s> {
pub fn task_disable_all(&self) -> Task<'d> {
let n = self.g.number();
Task::from_reg(&regs().tasks_chg[n].dis)
}