From ff7bf82f02c638e30b78d54dd38521a2daa09384 Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 14 Jul 2026 14:40:46 +0800 Subject: [PATCH] chore: silence dead-code warnings in physics test-mirror module --- src/physics.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/physics.rs b/src/physics.rs index 71d30f2..1749628 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1,5 +1,12 @@ //! CPU mirror of the shader physics, for unit-testing. //! Natural units: Rs = 1. +// +// These functions exist to be exercised by the integration test crate +// (`tests/physics_test.rs`), not by the binary. The binary pulls this module +// in only for `kerr_isco` (UI) and `kerr_horizon` (UI); the rest are test-only +// mirrors of shader math. Silence the resulting dead-code noise at the module +// level rather than per-function. +#![allow(dead_code)] use bevy::math::{Vec3, Vec4};