debug_load
and ddnet_checks
binaries from the twmap tool.
This means that it will print debug info, whenever
1. when a testing channel is first created for a map
2. when the mapper or tester uploads a map update
3. when a tester marks a map in the testing channel for upload
Note that at 3. th...let caps = re.captures(message);
I want to do something if either caps.is_none()
or caps.unwrap().len() < 3
, how best to write that?caps.map(|c| c.len() < 3).unwrap_or(true)
let (x, y, z, rest) = match re.captures(message) {
Some([x, y, z, ..rest]) => (x, y, z, rest),
_ => return,
}
if let None | Some(0..=2) = caps.map(|m| m.len()) { ... }
someone on the rust discord was mentioning thisx
in Some(x)
though?