Skip to content

Commit

Permalink
Format files.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanders committed Sep 22, 2024
1 parent a562909 commit 6eb7e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion battleground_construct/src/util/box_collision.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 6 additions & 2 deletions battleground_unit_control/src/register_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,12 @@ impl RegisterInterface {
);
}

pub fn add_module<M: UnitModule + Sized + 'static>(&mut self, name: &str, index: ModuleId, handler: M)
{
pub fn add_module<M: UnitModule + Sized + 'static>(
&mut self,
name: &str,
index: ModuleId,
handler: M,
) {
self.modules.insert(
index,
Module {
Expand Down

0 comments on commit 6eb7e20

Please sign in to comment.