refactor: put back format!
I think this is still a little nicer to read
This commit is contained in:
parent
4a8a08f66a
commit
c2b91fb774
1 changed files with 1 additions and 1 deletions
|
|
@ -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)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue