Skip to content

Commit

Permalink
fix(keep-alive): use option for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ojpbarbosa committed Oct 9, 2023
1 parent 2b7e13b commit b409a9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/keep-alive/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ struct Feature {
#[derive(Debug, Deserialize)]
struct Properties {
#[serde(rename = "areaDesc")]
area_desc: String,
severity: String,
urgency: String,
event: String,
headline: String,
description: String,
instruction: String,
area_desc: Option<String>,
severity: Option<String>,
urgency: Option<String>,
event: Option<String>,
headline: Option<String>,
description: Option<String>,
instruction: Option<String>,
}

#[derive(Debug, Deserialize)]
Expand Down Expand Up @@ -93,7 +93,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
loop {
let mut now = chrono::Local::now();
println!(
"\nKeeping \x1b[92mSciSight\x1b[0m alive on {}",
"Keeping \x1b[92mSciSight\x1b[0m alive on {}",
now.format("%B %-d, %Y, %H:%M").to_string()
);

Expand Down

0 comments on commit b409a9c

Please sign in to comment.