mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 13:48:21 -06:00
inline descriptor
This commit is contained in:
parent
bcffaa4562
commit
b63f2e4075
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue