Skip to content

Commit ed71ad2

Browse files
committed
Implement clippy suggestions
1 parent ecf5041 commit ed71ad2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/pwm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl Pwm {
222222
///
223223
/// [`enable`]: #method.enable
224224
pub fn with_pwmchip(pwmchip: u8, index: u8) -> Result<Pwm> {
225-
sysfs::export(pwmchip, index as u8)?;
225+
sysfs::export(pwmchip, index)?;
226226

227227
let pwm = Pwm {
228228
chip: pwmchip,

Diff for: src/spi/segment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl<'a, 'b> Segment<'a, 'b> {
243243
}
244244
}
245245

246-
impl<'a, 'b> fmt::Debug for Segment<'a, 'b> {
246+
impl fmt::Debug for Segment<'_, '_> {
247247
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
248248
f.debug_struct("Segment")
249249
.field("tx_buf", &self.tx_buf)

0 commit comments

Comments
 (0)