Skip to content

Commit da394f3

Browse files
authored
Move lint config to Cargo.toml (#72)
1 parent 1df452e commit da394f3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ opt-level = 3
1717

1818
[dependencies]
1919
bevy = "0.15"
20+
21+
# These lints may be important signals about code quality, but normal Bevy code
22+
# commonly triggers them and the CI workflow treats them as errors, so we've
23+
# chosen to allow them in this template.
24+
#
25+
# Feel free to delete the following lines.
26+
[lints.clippy]
27+
too_many_arguments = "allow"
28+
type_complexity = "allow"

src/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Bevy code commonly triggers these lints and they may be important signals
2-
// about code quality. They are sometimes hard to avoid though, and the CI
3-
// workflow treats them as errors, so this allows them throughout the project.
4-
// Feel free to delete this line.
5-
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
6-
71
use bevy::asset::AssetMetaCheck;
82
use bevy::prelude::*;
93

0 commit comments

Comments
 (0)