inline descriptor

This commit is contained in:
griffi-gh 2023-02-15 22:08:48 +01:00
parent bcffaa4562
commit b63f2e4075

View file

@ -35,6 +35,7 @@ pub trait BlockDescriptorSource {
fn descriptor(self) -> BlockDescriptor; fn descriptor(self) -> BlockDescriptor;
} }
impl BlockDescriptorSource for Block { impl BlockDescriptorSource for Block {
#[inline]
fn descriptor(self) -> BlockDescriptor { fn descriptor(self) -> BlockDescriptor {
match self { match self {
Self::Air => BlockDescriptor { Self::Air => BlockDescriptor {