Skip to content

Commit

Permalink
resource: ignore array size clippy warning
Browse files Browse the repository at this point in the history
The const is used only once, so there is no reason not to inline it.
  • Loading branch information
neocturne committed Jan 9, 2025
1 parent 52572a9 commit 28a191a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/resource/src/legacy_block_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const DEF: &str = "air";
const EMPTY: [&str; 16] = simple(DEF);

/// Mapping from each numeric block type and damage/subtype ID to new string ID
#[allow(clippy::large_const_arrays)]
pub const LEGACY_BLOCK_TYPES: [[&str; 16]; 256] = [
/* 0 */
simple("air"),
Expand Down

0 comments on commit 28a191a

Please sign in to comment.