Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 24, 2022
1 parent 1ab074a commit 92bba2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/build-example-pages/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ fn parse_examples(panic_on_missing: bool) -> Vec<Example> {
.iter()
.flat_map(|val| {
let technical_name = val["name"].as_str().unwrap().to_string();
if panic_on_missing {
if metadatas.get(&technical_name).is_none() {
panic!("Missing metadata for example {}", technical_name);
}
if panic_on_missing && metadatas.get(&technical_name).is_none() {
panic!("Missing metadata for example {}", technical_name);
}

if metadatas
Expand Down

0 comments on commit 92bba2f

Please sign in to comment.