inline descriptor

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

View file

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