fix clippy

This commit is contained in:
Cyryl Płotnicki 2021-10-31 10:44:40 +00:00
parent 57b7ddef8b
commit 39f3afbf06
2 changed files with 1 additions and 2 deletions

View file

@ -179,7 +179,6 @@ mod must {
#[test]
fn be_same_when_loaded_from_disk() -> Result<()> {
femme::with_level(log::LevelFilter::Debug);
let repository_path = tempdir()?;
let mut original = Index::new()?;

View file

@ -175,7 +175,7 @@ mod must {
backup_file_with_text_contents(&source, repository_path, secret, &test_filename, "some contents").unwrap();
let all_repo_files = get_sorted_files_recursively(repository_path).unwrap();
assert!(all_repo_files.len() > 0);
assert!(!all_repo_files.is_empty());
for filepath in all_repo_files {
let mut file = File::open(&filepath).unwrap();