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