Fix 3 compile errors: rtx-metal (Linux cfg), rtx-onnx (ort API), rtx-fusion (edition)

- rtx-metal: fix MetalError import in sparse/conversion.rs non-macOS stub
- rtx-onnx: update session.rs and tensor_bridge.rs for ort 2.x API changes
- rtx-fusion: fix Cargo.toml package name
- rtx-hub: fix discovery.rs type mismatch
- Full workspace (80+ crates) now compiles clean on Linux
This commit is contained in:
osobh
2026-03-15 17:33:54 -07:00
parent 4d88dc0584
commit d52d359f52
5 changed files with 23 additions and 21 deletions
+5 -2
View File
@@ -616,8 +616,11 @@ impl ModelMetrics {
.iter()
.filter(|(date_str, _)| {
if let Ok(date) = chrono::NaiveDate::parse_from_str(date_str, "%Y-%m-%d") {
let datetime = date.and_hms_opt(0, 0, 0).unwrap();
datetime.and_utc() >= cutoff
if let Some(datetime) = date.and_hms_opt(0, 0, 0) {
datetime.and_utc() >= cutoff
} else {
false
}
} else {
false
}