Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky9x committed Nov 22, 2023
2 parents be9dea9 + 5998894 commit 6d2de89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,3 @@ jobs:
run: cargo +beta test --all-features --all-targets --workspace
- name: Test (nightly)
run: cargo +nightly test --all-features --all-targets --workspace

# just a simple job that requires all other jobs to pass for it to pass
# used for branch protection rules requiring ci pass (to avoid listing every matrix permutation)
ci:
name: CI Pass
runs-on: ubuntu-latest
needs:
- clippy
- fmt
- test
steps:
- run: echo "dummy message because github requires all jobs to have at least 1 step"
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ use std::{env, fs};

macro_rules! unwrap {
($x:expr, $($fmt:tt)+) => {
anyhow::Context::with_context($x, || format!($($fmt)+))?
// dont use ? because we don't need the implicit .into() and it breaks some inference
match anyhow::Context::with_context($x, || format!($($fmt)+)) {
Ok(x) => x,
Err(e) => return Err(e),
}
};
}

Expand Down

0 comments on commit 6d2de89

Please sign in to comment.