From 6fb5b2297179a288995874fe17bf88a3fa0dee85 Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Wed, 11 Oct 2023 19:17:34 -0600 Subject: [PATCH] fmt --- src/local/room_coordinate.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/local/room_coordinate.rs b/src/local/room_coordinate.rs index 4d58ae63..f32cc4f8 100644 --- a/src/local/room_coordinate.rs +++ b/src/local/room_coordinate.rs @@ -211,7 +211,8 @@ impl RoomXY { Some(RoomXY { x, y }) } - /// Get the coordinate adjusted by a certain value, saturating at the edges of the room if the result would be outside the valid room area. + /// Get the coordinate adjusted by a certain value, saturating at the edges + /// of the room if the result would be outside the valid room area. /// /// Example usage: /// @@ -235,7 +236,8 @@ impl RoomXY { RoomXY { x, y } } - /// Get the neighbor of a given `RoomXY` in the given direction, returning `None` if the result is outside the valid room area. + /// Get the neighbor of a given `RoomXY` in the given direction, returning + /// `None` if the result is outside the valid room area. /// /// Example usage: /// @@ -256,7 +258,8 @@ impl RoomXY { self.checked_add((dx as i8, dy as i8)) } - /// Get the neighbor of a given `RoomXY` in the given direction, saturating at the edges if the result is outside the valid room area. + /// Get the neighbor of a given `RoomXY` in the given direction, saturating + /// at the edges if the result is outside the valid room area. /// /// Example usage: ///