diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8f3901c..75aee5f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -50,10 +50,23 @@ jobs: - run: cargo build + rustfmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Install Rust + run: | + rustup default nightly + rustup update --no-self-update + rustup component add rustfmt + - run: cargo fmt -- --check + success: needs: - test - msrv + - rustfmt runs-on: ubuntu-latest # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency # failed" as success. So we have to do some contortions to ensure the job fails if any of its diff --git a/tests/glob-std.rs b/tests/glob-std.rs index 4466413..ba12701 100644 --- a/tests/glob-std.rs +++ b/tests/glob-std.rs @@ -62,7 +62,10 @@ fn main() { } fn glob_with_vec(pattern: &str, options: glob::MatchOptions) -> Vec { - glob_with(pattern, options).unwrap().map(|r| r.unwrap()).collect() + glob_with(pattern, options) + .unwrap() + .map(|r| r.unwrap()) + .collect() } let root = TempDir::new("glob-tests");