add handeling for empty bounds string
All checks were successful
Build and Test / minecraft-wiiu (push) Successful in 2m8s
Build and Test / wii-u-chat (push) Successful in 2m18s
Build and Test / super-mario-maker (push) Successful in 3m28s
Build and Test / splatoon-testfire (push) Successful in 4m45s
Build and Test / mario-tennis (push) Successful in 5m0s
Build and Test / friends (push) Successful in 5m12s
Build and Test / splatoon (push) Successful in 5m51s
Build and Test / puyopuyo (push) Successful in 5m59s
Build and Test / fast-racing-neo (push) Successful in 6m10s
Build and Test / wii-sports-club (push) Successful in 1m15s
All checks were successful
Build and Test / minecraft-wiiu (push) Successful in 2m8s
Build and Test / wii-u-chat (push) Successful in 2m18s
Build and Test / super-mario-maker (push) Successful in 3m28s
Build and Test / splatoon-testfire (push) Successful in 4m45s
Build and Test / mario-tennis (push) Successful in 5m0s
Build and Test / friends (push) Successful in 5m12s
Build and Test / splatoon (push) Successful in 5m51s
Build and Test / puyopuyo (push) Successful in 5m59s
Build and Test / fast-racing-neo (push) Successful in 6m10s
Build and Test / wii-sports-club (push) Successful in 1m15s
This commit is contained in:
parent
f678bcc929
commit
9ebf88d8eb
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
if let Ok(val) = T::from_str(str) {
|
||||||
return Some(val == compare);
|
return Some(val == compare);
|
||||||
}
|
}
|
||||||
|
if str.is_empty() {
|
||||||
|
return Some(true);
|
||||||
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue