From 6102ed1a1e75c218c87bd1f01194952a2d0614de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Wed, 16 Dec 2020 17:03:32 +0000 Subject: Correctly check code formatting in CI --- .github/workflows/ci.yml | 1 + src/lib.rs | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 141fea4..a7074d4 100644 --- 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 index 7acac21..bef0fb2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,12 +100,7 @@ impl PyObjectProtocol for BlockerResult { fn __repr__(&self) -> PyResult { 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 )) } } -- cgit v1.2.3