Skip to content

Commit 42148ce

Browse files
committed
Count changed locations rather than the number of levels changed.
1 parent a71ed53 commit 42148ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn process(oracle_cmd: &str, p: &Path) -> u64 {
4242
PubKind::Pub
4343
};
4444
let mut next_txt = cur_txt.clone();
45+
let mut depubed = false;
4546
loop {
4647
let next_kind = match kind {
4748
PubKind::Pub => PubKind::Crate,
@@ -67,7 +68,10 @@ fn process(oracle_cmd: &str, p: &Path) -> u64 {
6768
.status()
6869
{
6970
Ok(s) if s.success() => {
70-
num_changed += 1;
71+
if !depubed {
72+
num_changed += 1;
73+
depubed = true;
74+
}
7175
next_txt = try_txt;
7276
}
7377
_ => break,

0 commit comments

Comments
 (0)