git.delta.rocks / jrsonnet / refs/commits / e94fcf5be983

difftreelog

fix(macros) derive(FromUntyped) type check

rqwlztywYaroslav Bolyukin2026-05-05parent: #b42af5c.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-macros/src/typed.rsdiffbeforeafterboth
407407
408 impl #impl_generics FromUntyped for #ident #ty_generics #where_clause {408 impl #impl_generics FromUntyped for #ident #ty_generics #where_clause {
409 fn from_untyped(value: Val) -> JrResult<Self> {409 fn from_untyped(value: Val) -> JrResult<Self> {
410 <Self as Typed>::TYPE.check(&value)?;
410 let obj = value.as_obj().expect("shape is correct");411 let obj = value.as_obj().expect("shape is correct");
411 Self::parse(&obj)412 Self::parse(&obj)
412 }413 }