File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,23 @@ jobs:
50
50
51
51
- run : cargo build
52
52
53
+ rustfmt :
54
+ name : Rustfmt
55
+ runs-on : ubuntu-latest
56
+ steps :
57
+ - uses : actions/checkout@master
58
+ - name : Install Rust
59
+ run : |
60
+ rustup default nightly
61
+ rustup update --no-self-update
62
+ rustup component add rustfmt
63
+ - run : cargo fmt -- --check
64
+
53
65
success :
54
66
needs :
55
67
- test
56
68
- msrv
69
+ - rustfmt
57
70
runs-on : ubuntu-latest
58
71
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
59
72
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ fn main() {
62
62
}
63
63
64
64
fn glob_with_vec ( pattern : & str , options : glob:: MatchOptions ) -> Vec < PathBuf > {
65
- glob_with ( pattern, options) . unwrap ( ) . map ( |r| r. unwrap ( ) ) . collect ( )
65
+ glob_with ( pattern, options)
66
+ . unwrap ( )
67
+ . map ( |r| r. unwrap ( ) )
68
+ . collect ( )
66
69
}
67
70
68
71
let root = TempDir :: new ( "glob-tests" ) ;
You can’t perform that action at this time.
0 commit comments