Update to latest Rust syntax and silence dead code warning for Ram and Rom size query methods