-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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
| pub fn id(&self) -> i64 { | |
| let value = flatdata_read_bytes!(i64, self.data.as_ptr(), 0, 40); | |
| unsafe { std::mem::transmute::<i64, i64>(value) } | |
| } |
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 an i64. Why transmute?
Metadata
Metadata
Assignees
Labels
No labels