From 5a55a76e8417e2b6f11e7fcbea825df6bda0fba6 Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Sun, 25 Feb 2024 00:55:42 +0100 Subject: [PATCH] CI: enforce format with `cargo fmt` (#6) * CI: enforce format with `cargo fmt` * apply cargo fmt --- .github/workflows/ci.yml | 3 +++ src/cairo_vm.rs | 2 +- src/error.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90998c8..abff72d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,9 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- + - name: Cargo fmt + run: cargo fmt --check + - name: Get Stone submodule version id: get-stone-version run: | diff --git a/src/cairo_vm.rs b/src/cairo_vm.rs index ccdaf27..8b88961 100644 --- a/src/cairo_vm.rs +++ b/src/cairo_vm.rs @@ -131,7 +131,7 @@ pub fn make_bootloader_tasks( pie.map(|pie| TaskSpec { task: Task::Pie(pie), }) - .map_err(BootloaderTaskError::Pie) + .map_err(BootloaderTaskError::Pie) }); program_tasks.chain(cairo_pie_tasks).collect() diff --git a/src/error.rs b/src/error.rs index 20db125..8f74a1e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -16,4 +16,4 @@ pub enum VerifierError { IoError(#[from] std::io::Error), #[error("verifier run failed")] CommandError(std::process::Output), -} \ No newline at end of file +}