Skip to content

Commit

Permalink
Implement clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
golemparts committed Dec 10, 2024
1 parent ecf5041 commit ed71ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl Pwm {
///
/// [`enable`]: #method.enable
pub fn with_pwmchip(pwmchip: u8, index: u8) -> Result<Pwm> {
sysfs::export(pwmchip, index as u8)?;
sysfs::export(pwmchip, index)?;

let pwm = Pwm {
chip: pwmchip,
Expand Down
2 changes: 1 addition & 1 deletion src/spi/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<'a, 'b> Segment<'a, 'b> {
}
}

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

0 comments on commit ed71ad2

Please sign in to comment.