Skip to content

Commit f64780a

Browse files
committed
style: format code
1 parent 15494cb commit f64780a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • versatiles_container/src/container/pmtiles

versatiles_container/src/container/pmtiles/reader.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,7 @@ impl TileSource for PMTilesReader {
437437
self.header.tile_data.offset,
438438
self.internal_compression,
439439
)
440-
.await?
441-
&& let Ok(size) = u32::try_from(range.length)
440+
.await? && let Ok(size) = u32::try_from(range.length)
442441
{
443442
tile_sizes.push((coord, size));
444443
}
@@ -534,11 +533,7 @@ mod tests {
534533
.await?
535534
.expect("tile should exist")
536535
.into_blob(compression)?;
537-
assert_eq!(
538-
*size,
539-
blob.len() as u32,
540-
"size mismatch at {coord:?}"
541-
);
536+
assert_eq!(*size, blob.len() as u32, "size mismatch at {coord:?}");
542537
}
543538

544539
Ok(())

0 commit comments

Comments
 (0)