Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin authored and dralley committed Jun 8, 2024
1 parent bc7b448 commit 1cb8496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/rpm/headers/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,5 @@ echo `hello world`
assert!(records.len() == 1);
assert_eq!(records[0].tag, crate::IndexTag::RPMTAG_POSTUN as u32);
assert_eq!(records[0].data.as_str(), Some("echo `hello world`"));

()
}
}
6 changes: 3 additions & 3 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ However, it does nothing.",
.flags(ScriptletFlags::EXPAND)
.prog(vec!["/bin/blah/bash", "-c"]),
)
.post_untrans_script(&String::from("echo postuntrans"))
.post_untrans_script(String::from("echo postuntrans"))
.add_changelog_entry("me", "was awesome, eh?", 1_681_411_811)
.add_changelog_entry("you", "yeah, it was", 850_984_797)
.requires(Dependency::any("wget"))
Expand Down Expand Up @@ -430,8 +430,8 @@ fn test_no_rpm_files() -> Result<(), Box<dyn std::error::Error>> {
let rpm_file_path = rpm_empty_rpm_file_path();
let package = Package::open(rpm_file_path)?;

assert_eq!(true, package.metadata.get_file_paths()?.is_empty());
assert_eq!(true, package.metadata.get_file_entries()?.is_empty());
assert!(package.metadata.get_file_paths()?.is_empty());
assert!(package.metadata.get_file_entries()?.is_empty());

Ok(())
}

0 comments on commit 1cb8496

Please sign in to comment.