Skip to content

Commit

Permalink
Apply clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
  • Loading branch information
Shnatsel committed Nov 12, 2023
1 parent 1c669ea commit e5e4a3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cargo-cyclonedx/src/purl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mod tests {
let purl = get_purl(
&crates_io_package,
&crates_io_package,
&Utf8Path::new("/foo/bar"),
Utf8Path::new("/foo/bar"),
None,
)
.unwrap();
Expand All @@ -119,7 +119,7 @@ mod tests {
#[test]
fn git_purl() {
let git_package: Package = serde_json::from_str(GIT_PACKAGE_JSON).unwrap();
let purl = get_purl(&git_package, &git_package, &Utf8Path::new("/foo/bar"), None).unwrap();
let purl = get_purl(&git_package, &git_package, Utf8Path::new("/foo/bar"), None).unwrap();
// Validate that data roundtripped correctly
let parsed_purl = Purl::from_str(&purl.to_string()).unwrap();
assert_eq!(parsed_purl.name(), "auditable-extract");
Expand All @@ -138,7 +138,7 @@ mod tests {
let purl = get_purl(
&root_package,
&root_package,
&Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
None,
)
.unwrap();
Expand All @@ -161,7 +161,7 @@ mod tests {
let purl = get_purl(
&root_package,
&root_package,
&Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
Some("src/кириллица/lib.rs".into()),
)
.unwrap();
Expand All @@ -185,7 +185,7 @@ mod tests {
let purl = get_purl(
&workspace_package,
&root_package,
&Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
Utf8Path::new("/home/shnatsel/Code/cargo-cyclonedx/"),
None,
)
.unwrap();
Expand All @@ -209,7 +209,7 @@ mod tests {
let purl = get_purl(
&workspace_package,
&root_package,
&Utf8Path::new("/foo/bar/"),
Utf8Path::new("/foo/bar/"),
None,
)
.unwrap();
Expand Down

0 comments on commit e5e4a3a

Please sign in to comment.