clippy --fix suggestions

This commit is contained in:
Henry Schimke
2023-10-28 11:11:30 -05:00
parent d05240ec68
commit 62e49b376d
3 changed files with 5 additions and 5 deletions

View File

@@ -22,10 +22,10 @@ impl Version {
//throw std::invalid_argument("Unexpected dimension");
return Err(Exceptions::ILLEGAL_ARGUMENT);
}
return Self::FromNumber(
Self::FromNumber(
(dimension - Self::DimensionOffset(isMicro)) / Self::DimensionStep(isMicro),
isMicro,
);
)
}
pub fn FromNumber(versionNumber: u32, is_micro: bool) -> Result<VersionRef> {