]> git.nega.tv - josh/narcissus/commitdiff
meta: Set clippy allow list globally
authorJosh Simmons <josh@nega.tv>
Fri, 29 Nov 2024 21:40:30 +0000 (22:40 +0100)
committerJosh Simmons <josh@nega.tv>
Fri, 29 Nov 2024 21:40:30 +0000 (22:40 +0100)
Finally we can disable the pointless too many arguments lint...

17 files changed:
Cargo.toml
engine/narcissus-app/Cargo.toml
engine/narcissus-core/Cargo.toml
engine/narcissus-font/Cargo.toml
engine/narcissus-gpu/Cargo.toml
engine/narcissus-image/Cargo.toml
engine/narcissus-maths/Cargo.toml
engine/narcissus-sqlite/Cargo.toml
engine/narcissus-world/Cargo.toml
external/blake3-smol/Cargo.toml
external/renderdoc-sys/Cargo.toml
external/sqlite-sys/Cargo.toml
external/stb_image-sys/Cargo.toml
external/stb_truetype-sys/Cargo.toml
external/vulkan-sys/Cargo.toml
title/shark-shaders/Cargo.toml
title/shark/Cargo.toml

index fabaec9968538ee999e78208b1356365f6c6ed27..ce832cb26bb2a9afa97cd513f2ec9778ea705022 100644 (file)
@@ -30,3 +30,9 @@ lto="thin"
 [profile.dev]
 panic = "abort"
 opt-level = 0
+
+# Disable some pointless lints globally
+
+[workspace.lints.clippy]
+too_many_arguments = "allow"
+len_without_is_empty = "allow"
index edfc212649878d4cfa50bb3b0e7890d04096f5c1..089191df998d7554a069fd18a05781367ca93034 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 narcissus-core = { path = "../narcissus-core" }
 sdl3-sys = "0.1.2"
\ No newline at end of file
index aa99e001fa3d8e5d360f9b81fbfec1626a5b85c3..2713a3904a1a5d8d01a2b25525e6807e51ee1637 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 fast-float2 = "0.2.3"
 memchr = { version = "2" }
\ No newline at end of file
index 62f927ea1fe9964607356df854c1368dfda511aa..0c868deb904b484a285917011e28ccfe1b4ee7d8 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 stb_truetype-sys = { path = "../../external/stb_truetype-sys" }
 narcissus-core = { path = "../narcissus-core" }
index 9c82c69bfeddbfc6403764809aa4f157f8910cd2..5f9bdd79d4cb86373f0a9ea227dd868744f32326 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [features]
 default = ["debug_markers"]
 debug_markers = []
index aa9ce297c3a34af6e61085704991fc55d6a01751..26e4c8bd9f6a49a8ca4d9c750f95cc5fdfca06a8 100644 (file)
@@ -5,5 +5,8 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 stb_image-sys = { path = "../../external/stb_image-sys" }
\ No newline at end of file
index 184ca37b6344ff8635b956935039463fa9e23d6b..6573c45638c3c1883323a5caeddc0e6ebe6e22bf 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [features]
 
 [dependencies]
index 2f6186fee70a9b9fdc5708975fc7ab6a8515ee4c..7d0b9310f6e4ddc65c68cf247682f3fe943a4de9 100644 (file)
@@ -5,5 +5,8 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 sqlite-sys = { path = "../../external/sqlite-sys" }
\ No newline at end of file
index 14eff5da87a27fdcbeeda69083210ba4c0f8f2a6..54a5860725dc0f18230ae69fd22e8699f5f15d75 100644 (file)
@@ -5,5 +5,8 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 narcissus-core = { path = "../narcissus-core" }
\ No newline at end of file
index 3f5c5ec9f3095f9e7c7f94614df12117ebe4731f..df3899979c9b6a1f90a17b6ecfea450c13d7ad4b 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [features]
 std = []
 no_avx512 = []
index be925c771f2cb613ab6004c48858529dde6d1160..2fa16c6d28cf361e985780a5d0f2574e884cf811 100644 (file)
@@ -5,4 +5,7 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
\ No newline at end of file
index 8465957e7584cff38c8612344e944a28213fdf1b..6de3e391d466c90221196e15963550b6840d581b 100644 (file)
@@ -5,4 +5,7 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
index 94d2889a86a220461139badd3dc64ac40747aba5..a808a1a04302afe14813db46274dbfd71d4ac260 100644 (file)
@@ -5,4 +5,7 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
\ No newline at end of file
index 413c19c12b1e256c7765f36ee0d16fcc87428ee6..ea077477e2e1ae516b2e60ab102c5f221b8b0d9b 100644 (file)
@@ -5,4 +5,7 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
\ No newline at end of file
index 5bbf4d31d4f0ac6103207f04de01bc44e5f76eca..d6f3f1a982cde49003c3941372d22729dee28a59 100644 (file)
@@ -5,4 +5,7 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
\ No newline at end of file
index 6f57c7079a0b6551b4fb55d47cba954140d32d40..a5702d57fd5018d672f2faf6a93373e805945b85 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 narcissus-core = { path = "../../engine/narcissus-core" }
 narcissus-font = { path = "../../engine/narcissus-font" }
index 635da7d54e5b078adf415a28af0c5d2e1e0079e2..f4567650f810e5ec023e30bfa905cbd75f7cbb0c 100644 (file)
@@ -5,6 +5,9 @@ edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
+[lints]
+workspace = true
+
 [dependencies]
 
 renderdoc-sys = { path = "../../external/renderdoc-sys" }