From d9a6a57df06e4a990f7cd027fba78fadfd487b21 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 25 Apr 2023 12:50:18 +0200 Subject: [PATCH 1/2] Fix deprecation warning --- tools/automator/src/announcement.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/automator/src/announcement.rs b/tools/automator/src/announcement.rs index 8c893fe5e..cc6aedf30 100644 --- a/tools/automator/src/announcement.rs +++ b/tools/automator/src/announcement.rs @@ -2,7 +2,7 @@ use std::{collections::HashSet, fmt::Write, path::PathBuf}; use anyhow::Context; use chrono::{Datelike, Utc}; -use map_macro::set; +use map_macro::hash_set; use octocrab::Octocrab; use tokio::{ fs::{self, File}, @@ -87,7 +87,7 @@ async fn generate_announcement( let mut pull_request_links = String::new(); let mut author_links = String::new(); - let author_blacklist = set! { + let author_blacklist = hash_set! { "hannobraun", "dependabot[bot]" }; From 2e940b2205358025d7297bb1294dd680372170d9 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 25 Apr 2023 12:50:26 +0200 Subject: [PATCH 2/2] Run Clippy on CI for all workspace members --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 132eedd94..faaa0c24b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Check formatting run: cargo fmt --all -- --check - name: Run Clippy - run: cargo clippy --all-features -- -D warnings + run: cargo clippy --workspace --all-features -- -D warnings - name: Reject uncommitted changes run: git diff --exit-code - name: Build documentation