We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab074a commit 92bba2fCopy full SHA for 92bba2f
tools/build-example-pages/src/main.rs
@@ -67,10 +67,8 @@ fn parse_examples(panic_on_missing: bool) -> Vec<Example> {
67
.iter()
68
.flat_map(|val| {
69
let technical_name = val["name"].as_str().unwrap().to_string();
70
- if panic_on_missing {
71
- if metadatas.get(&technical_name).is_none() {
72
- panic!("Missing metadata for example {}", technical_name);
73
- }
+ if panic_on_missing && metadatas.get(&technical_name).is_none() {
+ panic!("Missing metadata for example {}", technical_name);
74
}
75
76
if metadatas
0 commit comments