Make lint fail on warnings

This commit is contained in:
Victor Mignot 2022-10-17 10:29:11 -04:00
parent 83b7ee5c77
commit a66546c5b0
No known key found for this signature in database
GPG key ID: FFE4EF056FB5E0D0
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ jobs:
run: cargo fmt --check
- name: Lint
run: cargo clippy
run: cargo clippy -- -D warnings
- name: Tests
run: cargo test

View file

@ -17,7 +17,7 @@ impl<'a> Client {
Client { discord_client }
}
pub async fn connect_discord(&mut self) -> () {
pub async fn connect_discord(&mut self) {
if let Err(error) = self.discord_client.start().await {
println!("Could not connect to Discord: {:?}", error);
}