cargo clippy --fix

This commit is contained in:
Henry Schimke
2023-01-27 15:24:24 -06:00
parent 58e6827e89
commit 42d40de755
86 changed files with 196 additions and 335 deletions

View File

@@ -209,11 +209,11 @@ impl UPCEANExtension5Support {
let unitsString = (rawAmount / 100).to_string();
let hundredths = rawAmount % 100;
let hundredthsString = if hundredths < 10 {
format!("0{}", hundredths)
format!("0{hundredths}")
} else {
hundredths.to_string()
};
Some(format!("{}{}.{}", currency, unitsString, hundredthsString))
Some(format!("{currency}{unitsString}.{hundredthsString}"))
}
}