rust/landgen/src/wavefront_collapse/generator.rs
branchtransitional_engine
changeset 16029 9cbd18220eb7
parent 16024 3402b2185698
--- a/rust/landgen/src/wavefront_collapse/generator.rs	Tue Sep 03 11:16:52 2024 +0200
+++ b/rust/landgen/src/wavefront_collapse/generator.rs	Tue Sep 03 13:56:35 2024 +0200
@@ -58,7 +58,10 @@
 
 impl WavefrontCollapseLandGenerator {
     pub fn new(template: TemplateDescription, data_path: &Path) -> Self {
-        Self { template, data_path: data_path.to_owned() }
+        Self {
+            template,
+            data_path: data_path.to_owned(),
+        }
     }
 
     fn load_image_tiles<T: Copy + PartialEq + Default>(
@@ -69,7 +72,8 @@
         let mut result = Vec::new();
 
         let file = File::open(
-            self.data_path.join("Tiles")
+            self.data_path
+                .join("Tiles")
                 .join(&tile_description.name)
                 .as_path(),
         )?;