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 2715ba1 commit ea47bceCopy full SHA for ea47bce
src/tools/jsondoclint/src/validator.rs
@@ -415,15 +415,13 @@ impl<'a> Validator<'a> {
415
} else {
416
self.fail_expecting(id, expected);
417
}
418
- } else {
419
- if !self.missing_ids.contains(id) {
420
- self.missing_ids.insert(id);
+ } else if !self.missing_ids.contains(id) {
+ self.missing_ids.insert(id);
421
422
- let sels = json_find::find_selector(&self.krate_json, &Value::String(id.0.clone()));
423
- assert_ne!(sels.len(), 0);
+ let sels = json_find::find_selector(&self.krate_json, &Value::String(id.0.clone()));
+ assert_ne!(sels.len(), 0);
424
425
- self.fail(id, ErrorKind::NotFound(sels))
426
- }
+ self.fail(id, ErrorKind::NotFound(sels))
427
428
429
0 commit comments