From caefd6a78323379cdd39339a4e792a19f0a494f0 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 10 Nov 2025 15:05:45 -0500 Subject: graphics: decouple sdl & wayland --- dungeon/src/pos.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dungeon/src') diff --git a/dungeon/src/pos.rs b/dungeon/src/pos.rs index 8d84d3f..e3365ef 100644 --- a/dungeon/src/pos.rs +++ b/dungeon/src/pos.rs @@ -135,12 +135,12 @@ impl Pos { /// let pos = unsafe { Pos::new_unchecked(1, 1) }; /// assert_eq!(pos.xy(), (1,1)); /// ``` - /// - /// # Safety - /// - /// Library code and crates that use it expect the `Pos` x and y positions - /// to be within a gurenteed bound. When they are not this can cause - /// undefined behaviour, or crashes. + /// + /// # Safety + /// + /// Library code and crates that use it expect the `Pos` x and y positions + /// to be within a gurenteed bound. When they are not this can cause + /// undefined behaviour, or crashes. #[must_use] pub const unsafe fn new_unchecked(x: u16, y: u16) -> Self { Self(x, y) -- cgit v1.2.3-freya