File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dylint/src/package_options Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments