From 9cb5527c510d4159d67407538ea6fe02c68fa649 Mon Sep 17 00:00:00 2001 From: Jack Rickard Date: Tue, 17 May 2022 19:36:25 +0100 Subject: [PATCH] Fix formatting and update workflow to run on PRs --- .github/workflows/rust.yml | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ce43a70..f244b63 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,6 +1,6 @@ name: Rust -on: push +on: [push, pull_request] env: CARGO_TERM_COLOR: always diff --git a/src/lib.rs b/src/lib.rs index 3f041de..775d2b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -417,7 +417,8 @@ impl fmt::Debug for DiplomaticBag { let alt = f.alternate(); // Basically, run Debug on the worker thread, then send the resulting String back - let res = self.as_ref() + let res = self + .as_ref() .map(move |_, this| { if alt { format!("{:#?}", this)