commit 6102ed1a1e75c218c87bd1f01194952a2d0614de
parent 08407005bbc120dcc92197936c7b379fa6759493
Author: Árni Dagur <arni@dagur.eu>
Date: Wed, 16 Dec 2020 17:03:32 +0000
Correctly check code formatting in CI
Diffstat:
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -26,6 +26,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: fmt
+ args: -- --check
- name: Lint with clippy
uses: actions-rs/cargo@v1
diff --git a/src/lib.rs b/src/lib.rs
@@ -100,12 +100,7 @@ impl PyObjectProtocol for BlockerResult {
fn __repr__(&self) -> PyResult<String> {
Ok(format!(
"BlockerResult({}, {}, {:?}, {:?}, {:?}, {:?})",
- self.matched,
- self.important,
- self.redirect,
- self.exception,
- self.filter,
- self.error
+ self.matched, self.important, self.redirect, self.exception, self.filter, self.error
))
}
}