Code formatting

- Readability
- `clippy`
This commit is contained in:
Candifloss 2025-10-10 00:49:26 +05:30
parent 4d9a7c0527
commit 32a94af1ee
3 changed files with 10 additions and 3 deletions

View File

@ -9,24 +9,31 @@ pub struct Main {
/// Temperature in requested units (Kelvin, Celsius, or Fahrenheit)
#[serde(default)]
pub temp: Option<f32>,
/// "Feels like" temperature, accounting for human perception of weather
#[serde(default)]
pub feels_like: Option<f32>,
/// Minimum observed temperature (within large urban areas)
#[serde(default)]
pub temp_min: Option<f32>,
/// Maximum observed temperature (within large urban areas)
#[serde(default)]
pub temp_max: Option<f32>,
/// Atmospheric pressure at sea level (hPa)
#[serde(default)]
pub pressure: Option<u32>,
/// Humidity percentage (0-100)
#[serde(default)]
pub humidity: Option<u8>,
/// Atmospheric pressure at sea level (hPa)
#[serde(default)]
pub sea_level: Option<u32>,
/// Atmospheric pressure at ground level (hPa)
#[serde(default)]
pub grnd_level: Option<u32>,