From 5a69d2acf5a8e4bc8765ed486593a33f66c41379 Mon Sep 17 00:00:00 2001 From: Maple Nebel Date: Tue, 28 Apr 2026 23:54:34 +0200 Subject: [PATCH] add singular values for bounds values --- rnex-core/src/nex/matchmake.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rnex-core/src/nex/matchmake.rs b/rnex-core/src/nex/matchmake.rs index fd6632e..cb96c91 100644 --- a/rnex-core/src/nex/matchmake.rs +++ b/rnex-core/src/nex/matchmake.rs @@ -115,9 +115,13 @@ fn read_bounds_string(str: &str) -> Option<(T, T)> { } fn check_bounds_str(compare: T, str: &str) -> Option { - let bounds: (T, T) = read_bounds_string(str)?; - - Some(bounds.0 <= compare && compare <= bounds.1) + if let Some(bounds) = read_bounds_string::(str) { + return Some(bounds.0 <= compare && compare <= bounds.1); + } + if let Ok(val) = T::from_str(str) { + return Some(val == compare); + } + None } pub async fn broadcast_notification>(