Skip to content

Commit

Permalink
cargo fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickNercessian committed May 3, 2024
1 parent 6620505 commit c4dddac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daemon/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ async fn run(config: CliArgs) -> Result<RunOutput> {
rng_seed: None,
};

if !Regex::new(r"^[0-9a-fA-F]{88}$").unwrap().is_match(&runtime_config.station_id) {
if !Regex::new(r"^[0-9a-fA-F]{88}$")
.unwrap()
.is_match(&runtime_config.station_id)
{
return Err(anyhow!("Invalid station_id format"));
}

Expand Down

0 comments on commit c4dddac

Please sign in to comment.