From 045e54002061723c35b011e9f79778e70fa50d8a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 20 Jan 2025 15:46:13 -0800 Subject: [PATCH] roblox_emulator: use match guard --- lib/roblox_emulator/src/scheduler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roblox_emulator/src/scheduler.rs b/lib/roblox_emulator/src/scheduler.rs index f665e9d..9961979 100644 --- a/lib/roblox_emulator/src/scheduler.rs +++ b/lib/roblox_emulator/src/scheduler.rs @@ -59,8 +59,8 @@ fn schedule_thread(lua:&mlua::Lua,dt:mlua::Value)->Result<(),mlua::Error>{ match delay.classify(){ std::num::FpCategory::Nan=>Err(mlua::Error::runtime("NaN"))?, // cases where the number is too large to schedule - std::num::FpCategory::Infinite=>return Ok(()), - std::num::FpCategory::Normal=>if (u64::MAX as f64){ return Ok(()); }, _=>(),