Skip to content

Commit 41de940

Browse files
committed
Please clippy
1 parent d059eeb commit 41de940

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hal/src/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<M: PwmMeta, I: ChannelId> Channel<M, I> {
132132

133133
#[inline(always)]
134134
fn reg(&self) -> &ChannelRegister {
135-
&<Self as RegisterAccess<M>>::reg(self).pwm_ch_num(I::DYN)
135+
<Self as RegisterAccess<M>>::reg(self).pwm_ch_num(I::DYN)
136136
}
137137

138138
/// Returns `true` if the [`Channel`] is enabled and is currently

hal/src/tc/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ unsafe trait RegisterAccess<M: TcMeta, I: ChannelId> {
246246
fn channel(&self) -> &ChannelRegisterBlock {
247247
let tc = self.reg();
248248
match I::DYN {
249-
DynChannelId::Ch0 => &tc.tc_channel(0),
250-
DynChannelId::Ch1 => &tc.tc_channel(1),
251-
DynChannelId::Ch2 => &tc.tc_channel(2),
249+
DynChannelId::Ch0 => tc.tc_channel(0),
250+
DynChannelId::Ch1 => tc.tc_channel(1),
251+
DynChannelId::Ch2 => tc.tc_channel(2),
252252
}
253253
}
254254
}

0 commit comments

Comments
 (0)