Skip to content

Commit

Permalink
Update models.rs
Browse files Browse the repository at this point in the history
Clippy doc updates
  • Loading branch information
evaneaston authored May 9, 2024
1 parent 7352e33 commit fdda0ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct City {
/// An [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) 2-character country code
pub country_code: String,

/// When available will be rendered by [Display] instead of the name, country_code.
/// When available will be rendered by [Display] instead of the `name`, `country_code`.
pub display_name: Option<String>,
}
impl City {
Expand Down Expand Up @@ -128,7 +128,7 @@ pub struct CurrentWeather {
pub coord: Coord,
/// Seems to generally be a collection of one
pub weather: Vec<Weather>,
/// OpenWeatherMap documents as "Internal parameter"
/// `OpenWeatherMap` documents as "Internal parameter"
pub base: String,

/// Main readings that are usually present in responses. See [Main].
Expand Down Expand Up @@ -182,7 +182,7 @@ pub struct Main {
pub temp_min: f64,
/// Maximum temperature at the moment. This is maximal currently observed temperature (within large megalopolises and urban areas). Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
pub temp_max: f64,
/// Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), hPa
/// Atmospheric pressure (on the sea level, if there is no `sea_level` or `grnd_level` data), hPa
pub pressure: f64,
/// Atmospheric pressure on the sea level, hPa
pub sea_level: Option<f64>,
Expand Down

0 comments on commit fdda0ff

Please sign in to comment.