Make lint fail on warnings
This commit is contained in:
parent
83b7ee5c77
commit
a66546c5b0
2
.github/workflows/code-quality.yml
vendored
2
.github/workflows/code-quality.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: cargo clippy
|
run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
|
@ -17,7 +17,7 @@ impl<'a> Client {
|
||||||
Client { discord_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 {
|
if let Err(error) = self.discord_client.start().await {
|
||||||
println!("Could not connect to Discord: {:?}", error);
|
println!("Could not connect to Discord: {:?}", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue