Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Feb 19, 2024
1 parent c6f92b9 commit 5a4c7e6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,35 +465,32 @@ pub fn load_collection(
None
};

let collection = collection.or_else(|| {
match collection_from_manifest(&sigpath, &report_type) {
let collection =
collection.or_else(|| match collection_from_manifest(&sigpath, &report_type) {
Ok(coll) => Some((coll, 0)),
Err(e) => {
last_error = Some(e);
None
}
}
});
});

let collection = collection.or_else(|| {
match collection_from_signature(&sigpath, &report_type) {
let collection =
collection.or_else(|| match collection_from_signature(&sigpath, &report_type) {
Ok(coll) => Some((coll, 0)),
Err(e) => {
last_error = Some(e);
None
}
}
});
});

let collection = collection.or_else(|| {
match collection_from_pathlist(&sigpath, &report_type) {
let collection =
collection.or_else(|| match collection_from_pathlist(&sigpath, &report_type) {
Ok((coll, n_failed)) => Some((coll, n_failed)),
Err(e) => {
last_error = Some(e);
None
}
}
});
});

match collection {
Some((coll, n_failed)) => {
Expand Down

0 comments on commit 5a4c7e6

Please sign in to comment.