From 6f0bc53d9ef8909025bf97d2ecb4fa2a8b065384 Mon Sep 17 00:00:00 2001 From: Juniper Tyree Date: Mon, 29 Jul 2024 19:03:19 +0000 Subject: [PATCH] Fix clippy lints --- necsim/plugins/tskit/build.rs | 9 +-------- rustcoalescence/algorithms/cuda/gpu-kernel/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/necsim/plugins/tskit/build.rs b/necsim/plugins/tskit/build.rs index 0176682e5..1cd713ac6 100644 --- a/necsim/plugins/tskit/build.rs +++ b/necsim/plugins/tskit/build.rs @@ -19,14 +19,7 @@ use semver::{{BuildMetadata, Prerelease}};\n" writeln!( file, - "#[expect(dead_code)] -/// Returns the `rustc` `SemVer` version. -pub fn version() -> Version {{ - version_meta().semver -}} - -#[expect(dead_code)] -/// Returns the `rustc` `SemVer` version and additional metadata + "/// Returns the `rustc` `SemVer` version and additional metadata /// like the git short hash and build date. pub fn version_meta() -> VersionMeta {{ VersionMeta {{ diff --git a/rustcoalescence/algorithms/cuda/gpu-kernel/src/lib.rs b/rustcoalescence/algorithms/cuda/gpu-kernel/src/lib.rs index 77e646770..a45a0a9b6 100644 --- a/rustcoalescence/algorithms/cuda/gpu-kernel/src/lib.rs +++ b/rustcoalescence/algorithms/cuda/gpu-kernel/src/lib.rs @@ -43,6 +43,7 @@ use rust_cuda::{ forbid(ptx::register_spills), )] #[expect(clippy::type_complexity)] +#[allow(clippy::too_many_arguments)] // FIXME: use expect pub fn simulate< M: MathsCore + Sync, H: Habitat + RustToCuda + Sync,