Names used in libraries quite often contain numbers. In general, a sequence of digits in a name seems to be usually a number, not just a sequence of digits. However, rustfmt's sort order does not take that into account. For example, if I import several nom parsers for various integers, rustfmt suggests the following order
use nom::number::complete::{le_u128, le_u16, le_u32, le_u64, le_u8};
which feels really weird compared to
use nom::number::complete::{le_u8, le_u16, le_u32, le_u64, le_u128};
It would be great if the rustfmt sort order matched the natural expectations.
Names used in libraries quite often contain numbers. In general, a sequence of digits in a name seems to be usually a number, not just a sequence of digits. However, rustfmt's sort order does not take that into account. For example, if I import several nom parsers for various integers, rustfmt suggests the following order
which feels really weird compared to
It would be great if the rustfmt sort order matched the natural expectations.