Skip to content

Commit fce1ba5

Browse files
committed
Add clippy config for Bevy.
1 parent fd9964b commit fce1ba5

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ name = "processing"
33
version = "0.1.0"
44
edition = "2024"
55

6+
[lints]
7+
workspace = true
8+
69
[workspace]
710
resolver = "3"
811
members = ["crates/*"]
912

13+
[workspace.lints.clippy]
14+
type_complexity = "allow"
15+
too_many_arguments = "allow"
16+
1017
[workspace.dependencies]
1118
bevy = { version = "0.17", no-default-features = true, features = [
1219
"bevy_render",

crates/processing_ffi/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "processing_ffi"
33
version = "0.1.0"
44
edition = "2024"
55

6+
[lints]
7+
workspace = true
8+
69
[lib]
710
name = "processing"
811
crate-type = ["cdylib"]

crates/processing_render/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "processing_render"
33
version = "0.1.0"
44
edition = "2024"
55

6+
[lints]
7+
workspace = true
8+
69
[dependencies]
710
bevy = { workspace = true }
811
lyon = "1.0"

crates/processing_render/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,6 @@ impl CameraProjection for ProcessingProjection {
107107
}
108108
}
109109

110-
fn app<T>(cb: impl FnOnce(&App) -> Result<T>) -> Result<T> {
111-
let res = APP.with(|app_cell| {
112-
let app_borrow = app_cell.borrow();
113-
let app = app_borrow
114-
.as_ref()
115-
.ok_or(error::ProcessingError::AppAccess)?;
116-
cb(app)
117-
})?;
118-
Ok(res)
119-
}
120-
121110
fn app_mut<T>(cb: impl FnOnce(&mut App) -> Result<T>) -> Result<T> {
122111
let res = APP.with(|app_cell| {
123112
let mut app_borrow = app_cell.borrow_mut();

0 commit comments

Comments
 (0)