Add trailing commas; clean up formatting
All checks were successful
/ test (pull_request) Successful in 3m55s

This commit is contained in:
Aaron Fenyes 2025-08-01 13:50:51 -07:00
parent 2eba80fb69
commit af59166906
12 changed files with 235 additions and 213 deletions

View file

@ -13,7 +13,7 @@ use std::num::ParseFloatError;
#[readonly::make]
pub struct SpecifiedValue {
pub spec: String,
pub value: Option<f64>
pub value: Option<f64>,
}
impl SpecifiedValue {
@ -37,7 +37,7 @@ impl TryFrom<String> for SpecifiedValue {
Ok(SpecifiedValue::from_empty_spec())
} else {
spec.parse::<f64>().map(
|value| SpecifiedValue { spec: spec, value: Some(value) }
|value| SpecifiedValue { spec, value: Some(value) }
)
}
}