From 6264c8b074503eb0b25bcd1f5a445965cb071fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= <4142+huitseeker@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:12:11 -0500 Subject: [PATCH] ci: Nightly job + toolchain update (#75) * ci: add nightly job for unused deps & rust version * chore: bump rust toolchain --- .github/workflows/nightly.yml | 18 ++++++++++++++++++ crates/bellpepper-core/src/lc.rs | 1 + rust-toolchain.toml | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..bcfe39b --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,18 @@ +# Nightly sanity checks +name: nightly + +on: + workflow_dispatch: {} + # Once per day at 00:00 UTC + schedule: + - cron: "0 0 * * *" + +env: + CARGO_TERM_COLOR: always + +jobs: + unused-dependencies: + uses: lurk-lab/ci-workflows/.github/workflows/unused-deps.yml@main + + rust-version-check: + uses: lurk-lab/ci-workflows/.github/workflows/rust-version-check.yml@main \ No newline at end of file diff --git a/crates/bellpepper-core/src/lc.rs b/crates/bellpepper-core/src/lc.rs index 87cb195..f233ce9 100644 --- a/crates/bellpepper-core/src/lc.rs +++ b/crates/bellpepper-core/src/lc.rs @@ -63,6 +63,7 @@ impl Indexer { } pub fn iter(&self) -> impl Iterator + '_ { + #[allow(clippy::map_identity)] self.values.iter().map(|(key, value)| (key, value)) } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index de71823..df4d413 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] # The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy. profile = "default" -channel = "1.73" +channel = "1.75"