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
This is due to the generator supporting to deserialize enumerations: Those need to be transmuted. The generator could theoretically skip the useless transmute by checking if target type matches source type, but the way it was implemented right now it just always transmutes, even if it is a no-op.
Only in debug mode, release mode optimizes everything away. Similarly the flatdata_read_bytes macro is fully optimized to generate code similar to C++ bitfields.
Often times there are accessors that transmute the same time into itself such as:
osmflat-rs/osmflat/src/osmflat_generated.rs
Lines 494 to 497 in 011d70a
Is there any reason why this is being done, or is it something odd with the code generator? In this instance, the
id
is already ani64
. Why transmute?The text was updated successfully, but these errors were encountered: