Skip to content

Commit

Permalink
Fix linter error in service test
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Nov 28, 2023
1 parent c661d21 commit 6b42fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async-nats/tests/service_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ mod service {

match JSONSchema::compile(&schema).unwrap().validate(&data) {
Ok(_) => (),
Err(errs) => {
for err in errs {
Err(mut errs) => {
if let Some(err) = errs.next() {
panic!("schema {} validation error: {}", endpoint, err)
}
}
Expand Down

0 comments on commit 6b42fe7

Please sign in to comment.