You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run a latest released generator (v0.6.2+v0.25.0) uniffi-bindgen-cpp foo.udl --out-dir build it will create a A.cpp with this code at end end
voidFfiConverterTypeB::write(RustStream &stream, const B &val) {
}
int32_tFfiConverterTypeB::allocation_size(const B &val) {
return
}
}} // namespace A
Notice missing value after return for allocation_size.
I'm not sure how generator works, but my guess it's because template iterates through all the fields and if there are none then there is no fallback value:
For the UDL
If I run a latest released generator (v0.6.2+v0.25.0)
uniffi-bindgen-cpp foo.udl --out-dir build
it will create aA.cpp
with this code at end endNotice missing value after
return
forallocation_size
.I'm not sure how generator works, but my guess it's because template iterates through all the fields and if there are none then there is no fallback value:
uniffi-bindgen-cpp/bindgen/src/bindings/cpp/templates/rec.cpp
Lines 35 to 39 in 1521029
The text was updated successfully, but these errors were encountered: