From 46216790ce4cc41d8b4c23a8212cede4ec565366 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Tue, 17 Dec 2024 15:09:45 -0700 Subject: [PATCH] Move lint config to Cargo.toml --- Cargo.toml | 9 +++++++++ src/main.rs | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b58c5a..fc080df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,12 @@ opt-level = 3 [dependencies] bevy = "0.15" + +# These lints may be important signals about code quality, but normal Bevy code +# commonly triggers them and the CI workflow treats them as errors, so we've +# chosen to allow them in this template. +# +# Feel free to delete the following lines. +[lints.clippy] +too_many_arguments = "allow" +type_complexity = "allow" diff --git a/src/main.rs b/src/main.rs index 0ae962d..5da56d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,3 @@ -// Bevy code commonly triggers these lints and they may be important signals -// about code quality. They are sometimes hard to avoid though, and the CI -// workflow treats them as errors, so this allows them throughout the project. -// Feel free to delete this line. -#![allow(clippy::too_many_arguments, clippy::type_complexity)] - use bevy::asset::AssetMetaCheck; use bevy::prelude::*;