Skip to content

Commit

Permalink
Use Ok/Err instead of ScanResult::Ok/ScanResult:Err
Browse files Browse the repository at this point in the history
Co-authored-by: jonathan-d-zhang <[email protected]>
Signed-off-by: Robin <[email protected]>
  • Loading branch information
Robin5605 and jonathan-d-zhang authored Jul 19, 2024
1 parent 6c9566d commit 1090b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fn scan_package(client: &DragonflyClient, job: Job) -> ScanResult {
PackageScanResults::new(job.name, job.version, results, job.hash);
let body = package_scan_results.build_body();

ScanResult::Ok(body)
Ok(body)
}
Err(err) => ScanResult::Err(SubmitJobResultsError {
Err(err) => Err(SubmitJobResultsError {
name: job.name,
version: job.version,
reason: format!("{err}"),
Expand Down

0 comments on commit 1090b3c

Please sign in to comment.