Declare const ptr() method as const and remove explcit types in casts
@@ -54,7 +54,7 @@ pub fn render(
impl #name_pc {
/// Returns a pointer to the register block
- pub fn ptr() -> *const #base::RegisterBlock {
+ pub const fn ptr() -> *const #base::RegisterBlock {
#address as *const _
}
}
