mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 06:39:07 +02:00
Format let-else blocks
Use nightly rustfmt to format let-else.
This commit is contained in:
parent
ab3b273992
commit
7d231b92ea
3 changed files with 18 additions and 5 deletions
|
@ -55,7 +55,9 @@ impl<'a> LayerEntry<'a> {
|
|||
section: SectionIterItem,
|
||||
coords: SectionBlockCoords,
|
||||
) -> Result<bool> {
|
||||
let Some(block_type) = section.section.block_at(coords)?
|
||||
let Some(block_type) = section
|
||||
.section
|
||||
.block_at(coords)?
|
||||
.filter(|block_type| block_type.is(BlockFlag::Opaque))
|
||||
else {
|
||||
if self.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue