Phase 9.78h: Minor cleanup — suppress deprecation warnings for legacy box_trait::ResultBox handling in VM to keep logs clean while migrating to boxes::ResultBox.

This commit is contained in:
Moe Charm
2025-08-26 00:32:33 +09:00
parent 320fbf0955
commit 63656c1d1b

View File

@ -1057,6 +1057,8 @@ impl VM {
} }
// ResultBox (box_trait::ResultBox - legacy) // ResultBox (box_trait::ResultBox - legacy)
{
#[allow(deprecated)]
if let Some(result_box_legacy) = box_value.as_any().downcast_ref::<crate::box_trait::ResultBox>() { if let Some(result_box_legacy) = box_value.as_any().downcast_ref::<crate::box_trait::ResultBox>() {
match method { match method {
"is_ok" | "isOk" => { "is_ok" | "isOk" => {
@ -1071,6 +1073,7 @@ impl VM {
_ => return Ok(Box::new(VoidBox::new())), _ => return Ok(Box::new(VoidBox::new())),
} }
} }
}
// Generic fallback: toString for any Box type // Generic fallback: toString for any Box type
if method == "toString" { if method == "toString" {