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:
@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user