From a66546c5b0b8066bcce85344dfd39fac9add8f19 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Mon, 17 Oct 2022 10:29:11 -0400 Subject: [PATCH] Make lint fail on warnings --- .github/workflows/code-quality.yml | 2 +- src/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 96ae92c..231d611 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -23,7 +23,7 @@ jobs: run: cargo fmt --check - name: Lint - run: cargo clippy + run: cargo clippy -- -D warnings - name: Tests run: cargo test diff --git a/src/client.rs b/src/client.rs index 6eece7a..2a41778 100644 --- a/src/client.rs +++ b/src/client.rs @@ -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); }