From 6eb7e2049239dfd0f044739102fb12c6837df83b Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Sun, 22 Sep 2024 12:53:17 -0400 Subject: [PATCH] Format files. --- battleground_construct/src/util/box_collision.rs | 2 +- battleground_unit_control/src/register_interface.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/battleground_construct/src/util/box_collision.rs b/battleground_construct/src/util/box_collision.rs index 5e672bb..8e677cc 100644 --- a/battleground_construct/src/util/box_collision.rs +++ b/battleground_construct/src/util/box_collision.rs @@ -1,5 +1,5 @@ use cgmath::{BaseNum, Vector3}; -use serde::{Serialize, Deserialize}; +use serde::{Deserialize, Serialize}; /// Generic AxisAlignedBox of given dimensions. AxisAlignedBox is centered around the origin. /// Technicallly a RectangularAxisAlignedBox. diff --git a/battleground_unit_control/src/register_interface.rs b/battleground_unit_control/src/register_interface.rs index aacabb3..02d890d 100644 --- a/battleground_unit_control/src/register_interface.rs +++ b/battleground_unit_control/src/register_interface.rs @@ -244,8 +244,12 @@ impl RegisterInterface { ); } - pub fn add_module(&mut self, name: &str, index: ModuleId, handler: M) - { + pub fn add_module( + &mut self, + name: &str, + index: ModuleId, + handler: M, + ) { self.modules.insert( index, Module {