mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
inline descriptor
This commit is contained in:
parent
c865835e8d
commit
f5a4e2a532
|
@ -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