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.