main: rename save_region() argument from region to coords

For consistency.
This commit is contained in:
Matthias Schiffer 2023-03-03 19:22:45 +01:00
parent 657d8af8a7
commit e0467de080
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -91,13 +91,13 @@ impl<'a> RegionProcessor<'a> {
fn save_region( fn save_region(
&self, &self,
region: RegionCoords, coords: RegionCoords,
processed_data: &ChunkArray<Option<Box<world::layer::BlockInfoArray>>>, processed_data: &ChunkArray<Option<Box<world::layer::BlockInfoArray>>>,
) -> Result<()> { ) -> Result<()> {
let tmp_path = self.config.processed_path(region, true); let tmp_path = self.config.processed_path(coords, true);
storage::write(&tmp_path, processed_data)?; storage::write(&tmp_path, processed_data)?;
let output_path = self.config.processed_path(region, false); let output_path = self.config.processed_path(coords, false);
fs::rename(&tmp_path, &output_path).with_context(|| { fs::rename(&tmp_path, &output_path).with_context(|| {
format!( format!(
"Failed to rename {} to {}", "Failed to rename {} to {}",