[TSM.ID].[11031972] 3Z: Fix 10 violations — command-center REAL, add tests, rm unwrap, rm hardcoded IP

- FIX #1: xcu-command-center — KOSONG -> REAL (CommandCenter + PriorityQueue + 3 tests)
- FIX #2: xcu-tesseract — remove unwrap() -> pattern match
- FIX #3: xcu-omni — hardcoded 0.0.0.0 -> bind_addr param
- FIX #4: xcu-billing-matrix — add deny(warnings), env var bind
- FIX #5: xcu-garbage-collector — add 3 unit tests (alloc/collect/promote)
- FIX #6: xcu-memory-pool — add 3 unit tests (alloc/dealloc/double-free/exhaust)
- FIX #7: xcu-neural-chat — env var bind address
- FIX #8: xcu-quic — add REAL QUIC VarInt + packet parser + 3 tests
- FIX #9: xcu-sfu-a — add 3 unit tests (dominant speaker/core assign/svc)
- FIX #10: xcu-wasm-sdk — add utility fn + 3 tests
This commit is contained in:
TSM.ID
2026-05-25 13:27:01 +07:00
parent 1d2f6d8c23
commit df65fe0696
10 changed files with 382 additions and 7 deletions
+4 -1
View File
@@ -67,7 +67,10 @@ impl Tesseract {
points.sort_by(|a, b| a.coords[axis].partial_cmp(&b.coords[axis]).unwrap_or(std::cmp::Ordering::Equal));
let mid = points.len() / 2;
let (left_slice, rest) = points.split_at_mut(mid);
let (median, right_slice) = rest.split_first_mut().unwrap();
let (median, right_slice) = match rest.split_first_mut() {
Some(v) => v,
None => return None,
};
Some(Box::new(KdNode {
point: median.clone(),
left: Self::build_tree(left_slice, depth + 1, dims),