Finally, get rid of all rust warnings
Just a small step along the way to reduce the massive wall of spam every time you compile. This was done partly automagically with `cargo fix`. The rest was me deleting or commenting out a bunch of variables. Hope nothing was important...
This commit is contained in:
@@ -189,7 +189,7 @@ fn float_string(float: c_double, precision: usize, trim: bool) -> String {
|
||||
let mut string = format!("{:.p$}", float, p = precision);
|
||||
if trim {
|
||||
let truncate = {
|
||||
let mut slice = string.trim_right_matches('0');
|
||||
let mut slice = string.trim_end_matches('0');
|
||||
if slice.ends_with('.') {
|
||||
slice.len() - 1
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user