Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Henrik Panhans <[email protected]>
  • Loading branch information
henrik-dmg committed Apr 22, 2024
1 parent 3f5460b commit eaa6495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/HPOpenWeather/Models/Weather+Units.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public enum WeatherUnits: String, Codable {
}
}

}
}
4 changes: 2 additions & 2 deletions Sources/HPOpenWeather/Models/Weather.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public struct Weather: Decodable, Equatable, Hashable {
/// Government weather alerts data from major national weather warning systems.
public let alerts: [WeatherAlert]?

public internal(set) var language: Weather.Language!
public internal(set) var units: Weather.Units!
public internal(set) var language: WeatherLanguage!
public internal(set) var units: WeatherUnits!

// MARK: - Init

Expand Down
2 changes: 1 addition & 1 deletion Sources/HPOpenWeather/Models/Wind.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct Wind: Codable, Equatable, Hashable {
/// A measurement of the `speed` property if existing, measured in the passed in units.
/// - Parameter units: The units to use when formatting the `speed` property
/// - Returns: a measurement in the provided unit
public func speedMeasurement(units: Weather.Units) -> Measurement<UnitSpeed>? {
public func speedMeasurement(units: WeatherUnits) -> Measurement<UnitSpeed>? {
guard let speed else {
return nil
}
Expand Down

0 comments on commit eaa6495

Please sign in to comment.