Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Crossley <jim@crossleys.org>
  • Loading branch information
jcrossley3 committed Jul 9, 2024
1 parent 48dede4 commit 7f7515e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/fundamental/tests/broken_ref.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Testing broken references
#![allow(clippy::expect_used)]

use bytes::Bytes;
use std::convert::Infallible;
Expand Down
4 changes: 2 additions & 2 deletions modules/fundamental/tests/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ where
ctx,
sbom,
|data| {
let (sbom, _) = parse_spdx(&Discard, &*data)?;
let (sbom, _) = parse_spdx(&Discard, data)?;
Ok(fix_spdx_rels(sbom))
},
|ctx, sbom, tx| {
Expand Down Expand Up @@ -87,7 +87,7 @@ where
test_with(
ctx,
sbom,
|data| Ok(Bom::parse_from_json(&*data)?),
|data| Ok(Bom::parse_from_json(data)?),
|ctx, sbom, tx| Box::pin(async move { ctx.ingest_cyclonedx(sbom.clone(), &tx).await }),
|sbom| sbom::cyclonedx::Information(sbom).into(),
f,
Expand Down

0 comments on commit 7f7515e

Please sign in to comment.