mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
clippy --fix suggestions
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user