Commit 951c9bb
Add [lints] table, fix adding
# Objective
- Fix adding `#![allow(clippy::type_complexity)]` everywhere. like #9796
## Solution
- Use the new [lints] table that will land in 1.74
(https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lints)
- inherit lint to the workspace, crates and examples.
```
[lints]
workspace = true
```
## Changelog
- Bump rust version to 1.74
- Enable lints table for the workspace
```toml
[workspace.lints.clippy]
type_complexity = "allow"
```
- Allow type complexity for all crates and examples
```toml
[lints]
workspace = true
```
---------
Co-authored-by: Martín Maita <47983254+mnmaita@users.noreply.github.com>#![allow(clippy::type_complexity)] everywhere (#10011)1 parent 9c0fca0 commit 951c9bb
File tree
95 files changed
+137
-102
lines changed- crates
- bevy_a11y
- src
- bevy_animation
- src
- bevy_app
- src
- bevy_asset
- macros
- src
- bevy_audio
- src
- bevy_core_pipeline
- src
- bevy_core
- src
- bevy_derive
- src
- bevy_diagnostic
- src
- bevy_dylib
- src
- bevy_dynamic_plugin
- src
- bevy_ecs_compile_fail_tests/src
- bevy_ecs
- macros
- src
- bevy_encase_derive
- src
- bevy_gilrs
- src
- bevy_gizmos
- src
- bevy_gltf
- src
- bevy_hierarchy
- src
- bevy_input
- src
- bevy_internal
- src
- bevy_log
- src
- bevy_macro_utils
- src
- bevy_math
- src
- bevy_mikktspace
- src
- bevy_pbr
- src
- bevy_ptr
- src
- bevy_reflect
- bevy_reflect_derive
- src
- bevy_render
- macros
- src
- bevy_scene
- src
- bevy_sprite
- src
- bevy_tasks
- src
- bevy_text
- src
- bevy_time
- src
- bevy_transform
- src
- bevy_ui
- src
- bevy_utils
- macros
- src
- bevy_window
- src
- bevy_winit
- src
- examples
- 2d
- 3d
- ecs
- games
- input
- mobile
- src
- tools/scene_viewer
- ui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+137
-102
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments