RS.CLIPPY.UNUSUAL_BYTE_GROUPINGS

Binary or hex literals that aren't grouped by four

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: unusual_byte_groupings. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Warns if hexadecimal or binary literals are not grouped by nibble or byte.

Why is this bad?

Negatively impacts readability.

Example

let x: u32 = 0xFFF_FFF;
let y: u8 = 0b01_011_101;