Fix and work around excessively strict dead_code lint in Rust 1.78 nightly
Hi all,
This is a prerequisite for !925 (merged) -- once cargo-c is installed and the images rebuilt, Rust 1.78 will be pulled and that will bring the regression mentioned below.