The code in this part about Singleton no longer works as of Rust 2024
https://docs.rust-embedded.org/book/peripherals/singletons.html
static mut PERIPHERALS: Peripherals = Peripherals {
serial: Some(SerialPort),
};
giving error instead of warning "mutable reference to mutable static"