add handeling for empty bounds string

This commit is contained in:
Maple Nebel 2026-05-05 21:55:55 +02:00
commit 9ebf88d8eb

View file

@ -121,6 +121,9 @@ fn check_bounds_str<T: FromStr + PartialOrd>(compare: T, str: &str) -> Option<bo
if let Ok(val) = T::from_str(str) {
return Some(val == compare);
}
if str.is_empty() {
return Some(true);
}
None
}