Skip to content

Commit

Permalink
Fix formatting and update workflow to run on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Skepfyr committed May 17, 2022
1 parent a0d8884 commit 9cb5527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Rust

on: push
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ impl<T: fmt::Debug> fmt::Debug for DiplomaticBag<T> {
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)
Expand Down

0 comments on commit 9cb5527

Please sign in to comment.