From 480f91eff5b1868a8351b870588b4d5eb8e3b754 Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Mon, 27 Nov 2023 18:13:25 -0700 Subject: [PATCH] fmt --- src/objects/impls/room_terrain.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/objects/impls/room_terrain.rs b/src/objects/impls/room_terrain.rs index ed163e73..fe193694 100644 --- a/src/objects/impls/room_terrain.rs +++ b/src/objects/impls/room_terrain.rs @@ -60,11 +60,11 @@ impl RoomTerrain { pub fn get_raw_buffer_to_array(&self, destination: &Uint8Array) -> Result<(), ErrorCode> { let val = self.get_raw_buffer_to_array_internal(destination); - // val is integer if error; if object it's another reference to the Uint8Array; function - // was successful in that case + // val is integer if error; if object it's another reference to the Uint8Array; + // function was successful in that case match val.as_f64() { Some(n) => ErrorCode::result_from_i8(n as i8), - None => Ok(()) + None => Ok(()), } } }