From 45dc497f77a1664c7b6a89991b3070723bd4cc2f Mon Sep 17 00:00:00 2001 From: Troy Hinckley Date: Tue, 30 Apr 2024 08:20:59 -0500 Subject: [PATCH] Fix clippy lints (for real this time) --- .github/workflows/check.yml | 4 ++-- clippy.toml | 2 +- crates/rune-macros/defun.rs | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4124d155..63062faf 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -43,8 +43,8 @@ jobs: strategy: fail-fast: false matrix: - # Get early warning of new lints which are regularly introduced in beta channels. - toolchain: [stable, beta] + # Using beta lints are too flaky + toolchain: [stable] steps: - uses: actions/checkout@v4 with: diff --git a/clippy.toml b/clippy.toml index c49f7745..cb875058 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1 @@ -allowed-duplicate-crates = ["syn"] +allowed-duplicate-crates = ["syn", "bitflags"] diff --git a/crates/rune-macros/defun.rs b/crates/rune-macros/defun.rs index 31237be9..a2315ecd 100755 --- a/crates/rune-macros/defun.rs +++ b/crates/rune-macros/defun.rs @@ -1,5 +1,3 @@ -#![allow(clippy::manual_unwrap_or_default)] -// Issue with darling ^ use darling::FromMeta; use proc_macro2::TokenStream; use quote::{format_ident, quote};