From c28d0ab830e7e20a9515308018b9fa2f3c4719c0 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 11 Mar 2021 10:09:16 +0100 Subject: [PATCH 1/2] Fix code formatting --- src/pwm.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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> From 7052f5ab7a4013a4811e59bd706e1c9ec1ab7440 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Fri, 12 Mar 2021 08:26:46 +0100 Subject: [PATCH 2/2] Add fmt check to bors --- .github/bors.toml | 1 + .github/workflows/rustfmt.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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