clippy_utils::numeric_literal

Function format

Source
pub fn format(lit: &str, type_suffix: Option<&str>, float: bool) -> String
Expand description

A helper method to format numeric literals with digit grouping. lit must be a valid numeric literal without suffix.