refactor: put back format!

I think this is still a little nicer to read
This commit is contained in:
electria 2026-11-18 19:24:25 -08:00
commit c2b91fb774
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -67,7 +67,7 @@ pub fn pretty_eval(input: &str, max_digits: usize) -> Result<String, Error> {
} }
changing_string.insert_str( changing_string.insert_str(
if changing_string.contains('-') { 1 } else { 0 }, if changing_string.contains('-') { 1 } else { 0 },
&("0.".to_owned() + &"0".repeat(uexp - 1)), &format!("0.{}", "0".repeat(uexp - 1)),
); );
} }
} }