Skip to content

Commit

Permalink
fix: apply some automated clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed May 20, 2024
1 parent 6491039 commit e6c2465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/models/document_creation_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ mod test {
.creation_info
.creator_comment,
Some(
r#"This package has been shipped in source and binary form.
r"This package has been shipped in source and binary form.
The binaries were created with gcc 4.5.1 and expect to link to
compatible system run time libraries."#
compatible system run time libraries."
.to_string()
)
);
Expand Down
8 changes: 4 additions & 4 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ use std::result::Result as StdResult;

#[test]
fn deserialize_json_v2_2() -> Result<()> {
Ok(load_spdx("tests/data/SPDXJSONExample-v2.2.spdx.json", spdx_from_json).map(ignore)?)
load_spdx("tests/data/SPDXJSONExample-v2.2.spdx.json", spdx_from_json).map(ignore)
}

#[test]
fn deserialize_json_v2_3() -> Result<()> {
Ok(load_spdx("tests/data/SPDXJSONExample-v2.3.spdx.json", spdx_from_json).map(ignore)?)
load_spdx("tests/data/SPDXJSONExample-v2.3.spdx.json", spdx_from_json).map(ignore)
}

#[test]
fn deserialize_tag_value_v2_2() -> Result<()> {
Ok(load_spdx("tests/data/SPDXTagExample-v2.2.spdx", spdx_from_tag_value).map(ignore)?)
load_spdx("tests/data/SPDXTagExample-v2.2.spdx", spdx_from_tag_value).map(ignore)
}

#[test]
fn deserialize_tag_value_v2_3() -> Result<()> {
Ok(load_spdx("tests/data/SPDXTagExample-v2.3.spdx", spdx_from_tag_value).map(ignore)?)
load_spdx("tests/data/SPDXTagExample-v2.3.spdx", spdx_from_tag_value).map(ignore)
}

/// Helper function for ignoring a value.
Expand Down

0 comments on commit e6c2465

Please sign in to comment.