As `rustc 1.79.0-nightly (9d79cd5f7 2024-04-05)` is released which solves the issue mentioned , but the release has deperacted legacy numeric methods. Thus replace `u16::max_value()` etc with `u32::MAX` & `core::u16` to directly `u16`. fix #2639