mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 14:49:07 +02:00
Fix new clippy warnings
This commit is contained in:
parent
f661f854a4
commit
971afea727
2 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,9 @@ pub fn to_flat_coord<const AXIS: u8>(
|
|||
chunk: ChunkCoord<AXIS>,
|
||||
block: BlockCoord<AXIS>,
|
||||
) -> i32 {
|
||||
(region as i32) << (BLOCK_BITS + CHUNK_BITS) | ((chunk.0 as i32) << BLOCK_BITS | block.0 as i32)
|
||||
((region as i32) << (BLOCK_BITS + CHUNK_BITS))
|
||||
| ((chunk.0 as i32) << BLOCK_BITS)
|
||||
| (block.0 as i32)
|
||||
}
|
||||
|
||||
/// Splits a flat (linear) coordinate into region, chunk and block numbers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue