chore: Remove trailing whitespace (#129)
All checks were successful
/ test (push) Successful in 3m42s
All checks were successful
/ test (push) Successful in 3m42s
Switch to the convention of using no trailing whitespace, even on blank lines. Also remove some unintended trailing whitespace on non-blank lines and fix a few typos. Co-authored-by: Aaron Fenyes <aaron.fenyes@fareycircles.ooo> Reviewed-on: #129 Reviewed-by: Vectornaut <vectornaut@nobody@nowhere.net> Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
2c8c09d20d
commit
6c3a48fb52
20 changed files with 335 additions and 340 deletions
|
|
@ -20,7 +20,7 @@ impl SpecifiedValue {
|
|||
pub fn from_empty_spec() -> Self {
|
||||
Self { spec: String::new(), value: None }
|
||||
}
|
||||
|
||||
|
||||
pub fn is_present(&self) -> bool {
|
||||
matches!(self.value, Some(_))
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ impl From<Option<f64>> for SpecifiedValue {
|
|||
// if the specification is properly formatted, and `Error` if not
|
||||
impl TryFrom<String> for SpecifiedValue {
|
||||
type Error = ParseFloatError;
|
||||
|
||||
|
||||
fn try_from(spec: String) -> Result<Self, Self::Error> {
|
||||
if spec.is_empty() {
|
||||
Ok(Self::from_empty_spec())
|
||||
|
|
@ -52,4 +52,4 @@ impl TryFrom<String> for SpecifiedValue {
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue