From c2b91fb774bb64041941f623075437da89bb246e Mon Sep 17 00:00:00 2001 From: electria Date: Wed, 18 Nov 2026 19:24:25 -0800 Subject: [PATCH] refactor: put back format! I think this is still a little nicer to read --- src/formatting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatting.rs b/src/formatting.rs index 8cbb67c..2fb4c0a 100644 --- a/src/formatting.rs +++ b/src/formatting.rs @@ -67,7 +67,7 @@ pub fn pretty_eval(input: &str, max_digits: usize) -> Result { } changing_string.insert_str( if changing_string.contains('-') { 1 } else { 0 }, - &("0.".to_owned() + &"0".repeat(uexp - 1)), + &format!("0.{}", "0".repeat(uexp - 1)), ); } }