Skip to content

Commit

Permalink
Service startup await clippy lint (#700)
Browse files Browse the repository at this point in the history
Clippy v1.70 (yesterday's release) is complaining -
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_async_block

Also, a tiny typo spotted thx to spellchecking, and removing unused
cargo aliases
  • Loading branch information
nyurik authored Jun 2, 2023
1 parent b123770 commit a9c74fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .cargo/config.toml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PCPASSWORD=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async fn main() {

start(Args::parse())
.await
.map_or_else(|e| on_error(e), |server| async { server.await })
.unwrap_or_else(|e| on_error(e))
.await
.unwrap_or_else(|e| on_error(e));
}
Expand Down

0 comments on commit a9c74fd

Please sign in to comment.