Skip to content

Commit

Permalink
Merge #266
Browse files Browse the repository at this point in the history
266: Fix code formatting + check it on bors r=therealprof a=eldruin

This was missed in #246.

Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
  • Loading branch information
bors[bot] and eldruin authored Mar 12, 2021
2 parents d3ca28e + 7052f5a commit 4221894
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 4221894

Please sign in to comment.