Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ status = [
"ci-linux (stable, thumbv6m-none-eabi)",
"ci-linux (stable, thumbv7m-none-eabi)",
"ci-linux (1.35.0, x86_64-unknown-linux-gnu)",
"fmt",
]
1 change: 0 additions & 1 deletion .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ name: Code formatting check

jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 5 additions & 2 deletions src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ pub trait Pwm {
fn try_get_max_duty(&self) -> Result<Self::Duty, Self::Error>;

/// Sets a new duty cycle
fn try_set_duty(&mut self, channel: &Self::Channel, duty: Self::Duty)
-> Result<(), Self::Error>;
fn try_set_duty(
&mut self,
channel: &Self::Channel,
duty: Self::Duty,
) -> Result<(), Self::Error>;

/// Sets a new PWM period
fn try_set_period<P>(&mut self, period: P) -> Result<(), Self::Error>
Expand Down