1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

refactor/printf ~ fix cargo clippy complaint (clippy::needless_borrow)

This commit is contained in:
Roy Ivy III 2021-06-06 12:20:03 -05:00
parent 94f5011662
commit b3dd80d39c

View file

@ -258,7 +258,7 @@ pub fn num_format(field: &FormatField, in_str_opt: Option<&String>) -> Option<St
// any formatter (int or float) // any formatter (int or float)
let initial_prefix = get_initial_prefix( let initial_prefix = get_initial_prefix(
in_str, in_str,
&field.field_type field.field_type
); );
// then get the FormatPrimitive from the Formatter // then get the FormatPrimitive from the Formatter
formatter.get_primitive(field, &initial_prefix, in_str) formatter.get_primitive(field, &initial_prefix, in_str)