Skip to content

Commit 08053d9

Browse files
committed
fix errors
1 parent 8070082 commit 08053d9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dylint/src/package_options/revs.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Revs {
6363
then {
6464
content.trim().to_string()
6565
} else {
66-
return Err(anyhow!("Could not find or parse rust-toolchain file in commit {}", oid))
66+
return Ok(None);
6767
}
6868
};
6969

@@ -138,7 +138,7 @@ impl Revs {
138138

139139
if current_batch_oids.is_empty() && commit_data.is_empty() {
140140
// If HEAD commit has no parseable version and no history provided.
141-
return Err(anyhow!("No valid commits found in repository history"));
141+
return Ok(None);
142142
}
143143

144144
for oid in current_batch_oids {
@@ -416,8 +416,6 @@ mod test {
416416
expected_oldest_rev.version
417417
);
418418

419-
println!(
420-
"Search for ancient version {ancient_version} found Rev: {found_rev:?}",
421-
);
419+
println!("Search for ancient version {ancient_version} found Rev: {found_rev:?}",);
422420
}
423421
}

0 commit comments

Comments
 (0)