refactor: cargo clippy improvements

This commit is contained in:
2025-04-14 23:34:19 -04:00
parent 85e1f082a7
commit f9495a36f2
9 changed files with 42 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
use azalea::{entity::particle::Particle, registry::ParticleKind};
#[allow(clippy::too_many_lines)]
pub fn to_kind(particle: &Particle) -> ParticleKind {
pub const fn to_kind(particle: &Particle) -> ParticleKind {
match particle {
Particle::AngryVillager => ParticleKind::AngryVillager,
Particle::Block(_) => ParticleKind::Block,