mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-28 05:12:34 +00:00
cargo clippy --fix
This commit is contained in:
@@ -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}"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user