diff --git a/Sources/Units/Units.swift b/Sources/Units/Units.swift index 2f23759..d75c39b 100644 --- a/Sources/Units/Units.swift +++ b/Sources/Units/Units.swift @@ -340,28 +340,36 @@ public struct UnitValue: } /// The result will have the `unit` of the left hand side value. - public static func - (lhs: UnitValue, rhs: UnitValue) + public static func - ( + lhs: UnitValue, rhs: UnitValue + ) -> UnitValue { (lhs.value - rhs.value)[lhs.unit] } /// The result will have the `unit` of the left hand side value. - public static func + (lhs: UnitValue, rhs: UnitValue) + public static func + ( + lhs: UnitValue, rhs: UnitValue + ) -> UnitValue { (lhs.value + rhs.value)[lhs.unit] } /// The result will have the `unit` of the left hand side value. - public static func * (lhs: UnitValue, rhs: UnitValue) + public static func * ( + lhs: UnitValue, rhs: UnitValue + ) -> UnitValue { (lhs.value * rhs.value)[lhs.unit] } /// The result will have the `unit` of the left hand side value. - public static func / (lhs: UnitValue, rhs: UnitValue) + public static func / ( + lhs: UnitValue, rhs: UnitValue + ) -> UnitValue { guard rhs.value != 0 else {