summaryrefslogtreecommitdiff
path: root/dungeon/src/pos.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-10 22:10:52 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-10 22:11:42 -0500
commit3efd5859f53817a0df1eeb7e9317cdc85b62bb61 (patch)
tree0bc79cff70f2b7a71f56ac5b35ace2c542c3b398 /dungeon/src/pos.rs
parentadd more to checkpoint doc (diff)
downloadDungeonCrawl-3efd5859f53817a0df1eeb7e9317cdc85b62bb61.tar.gz
DungeonCrawl-3efd5859f53817a0df1eeb7e9317cdc85b62bb61.tar.bz2
DungeonCrawl-3efd5859f53817a0df1eeb7e9317cdc85b62bb61.zip
use fmt fns directly when possible
Diffstat (limited to 'dungeon/src/pos.rs')
-rw-r--r--dungeon/src/pos.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/dungeon/src/pos.rs b/dungeon/src/pos.rs
index 623d914..47732a0 100644
--- a/dungeon/src/pos.rs
+++ b/dungeon/src/pos.rs
@@ -75,10 +75,10 @@ impl Direction {
impl Display for Direction {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
- Self::North => write!(f, "NORTH"),
- Self::South => write!(f, "SOUTH"),
- Self::East => write!(f, "EAST"),
- Self::West => write!(f, "WEST"),
+ Self::North => f.write_str("NORTH"),
+ Self::South => f.write_str("SOUTH"),
+ Self::East => f.write_str("EAST"),
+ Self::West => f.write_str("WEST"),
}
}
}