diff --git a/.github/bors.toml b/.github/bors.toml index b77072d8f..255caf4a7 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -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", ] diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 9a55c0024..80439edbd 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -7,7 +7,6 @@ name: Code formatting check jobs: fmt: - name: Rustfmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/src/pwm.rs b/src/pwm.rs index 8a6c840a7..05fcf0a27 100644 --- a/src/pwm.rs +++ b/src/pwm.rs @@ -88,8 +88,11 @@ pub trait Pwm { fn try_get_max_duty(&self) -> Result; /// 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

(&mut self, period: P) -> Result<(), Self::Error>