1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

rust: allow dead code only during builds, not for Clippy

This commit is contained in:
grdddj 2023-04-10 12:07:58 +02:00
parent 7bf4d8df65
commit 6aa50bd1e3

View File

@ -2,7 +2,10 @@
#![deny(clippy::all)]
#![allow(clippy::new_without_default)]
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(dead_code)]
// Allowing dead code not to cause a lot of warnings when building for a specific target
// (when building for TR, a lot of code only used in TT would get marked as unused).
// Do not allow it for Clippy checks.
#![cfg_attr(not(feature = "clippy"), allow(dead_code))]
#![feature(lang_items)]
#![feature(optimize_attribute)]