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 42148ce commit 7834795Copy full SHA for 7834795
src/main.rs
@@ -36,7 +36,14 @@ fn process(oracle_cmd: &str, p: &Path) -> u64 {
36
match &cur_txt[start..end] {
37
"crate" => PubKind::Crate,
38
"super" => PubKind::Super,
39
- _ => todo!(),
+ _ => {
40
+ // FIXME: this captures things we don't need to deal with (e.g. `pub(self)`),
41
+ // things we could deal with (e.g. `pub(in ...)`) and random strings we've
42
+ // accidentally picked up (e.g. `a pub(The Frog and Cow)`). We should probably
43
+ // do something better with the middle class of thing than simply ignoring it.
44
+ i = m.end();
45
+ continue;
46
+ }
47
}
48
} else {
49
PubKind::Pub
0 commit comments