File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 9
9
AWS_ACCESS_KEY_ID : AKIA46X5W6CZEAQSMRH7
10
10
11
11
jobs :
12
+ rustfmt :
13
+ name : Rustfmt
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - name : Install Rust
18
+ run : rustup update stable && rustup default stable && rustup component add rustfmt
19
+ - run : cargo fmt --all --check
20
+
12
21
ci :
13
22
name : CI
14
23
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -209,8 +209,7 @@ impl<'a> Command<'a> {
209
209
210
210
#[ test]
211
211
fn errors_outside_command_are_fine ( ) {
212
- let input =
213
- "haha\" unterminated quotes @bot labels +bug. Terminating after the command" ;
212
+ let input = "haha\" unterminated quotes @bot labels +bug. Terminating after the command" ;
214
213
let mut input = Input :: new ( input, vec ! [ "bot" ] ) ;
215
214
assert ! ( input. next( ) . unwrap( ) . is_ok( ) ) ;
216
215
}
Original file line number Diff line number Diff line change @@ -130,7 +130,11 @@ pub(super) async fn handle_input(
130
130
Err ( e) => {
131
131
use crate :: github:: UnknownLabels ;
132
132
if let Some ( err @ UnknownLabels { .. } ) = e. downcast_ref ( ) {
133
- event. issue . post_comment ( & ctx. github , & err. to_string ( ) ) . await . context ( "failed to post missing label comment" ) ?;
133
+ event
134
+ . issue
135
+ . post_comment ( & ctx. github , & err. to_string ( ) )
136
+ . await
137
+ . context ( "failed to post missing label comment" ) ?;
134
138
return Ok ( ( ) ) ;
135
139
}
136
140
return Err ( e) ;
Original file line number Diff line number Diff line change @@ -141,9 +141,7 @@ pub(super) async fn handle_command(
141
141
author,
142
142
} ;
143
143
log:: debug!( "New Note Entry: {:#?}" , new_entry) ;
144
- current
145
- . entries_by_url
146
- . insert ( comment_url, new_entry) ;
144
+ current. entries_by_url . insert ( comment_url, new_entry) ;
147
145
log:: debug!( "Entries by URL: {:#?}" , current. entries_by_url) ;
148
146
}
149
147
}
Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ pub(crate) async fn handle(
7
7
config : & ReviewSubmittedConfig ,
8
8
) -> anyhow:: Result < ( ) > {
9
9
if let Event :: IssueComment (
10
- event
11
- @
12
- IssueCommentEvent {
10
+ event @ IssueCommentEvent {
13
11
action : IssueCommentAction :: Created ,
14
12
issue : Issue {
15
13
pull_request : Some ( _) ,
You can’t perform that action at this time.
0 commit comments