There is a missing `#[cfg(target_has_atomic = "ptr")]` for the line below, failing the compilation on ledger nano X. https://github.com/paritytech/parity-scale-codec/blob/31427d947024e054c57a4155d7ed08c1c5798dbb/src/codec.rs#L627