fix clippy
This commit is contained in:
parent
57b7ddef8b
commit
39f3afbf06
2 changed files with 1 additions and 2 deletions
|
@ -179,7 +179,6 @@ mod must {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn be_same_when_loaded_from_disk() -> Result<()> {
|
fn be_same_when_loaded_from_disk() -> Result<()> {
|
||||||
femme::with_level(log::LevelFilter::Debug);
|
|
||||||
let repository_path = tempdir()?;
|
let repository_path = tempdir()?;
|
||||||
let mut original = Index::new()?;
|
let mut original = Index::new()?;
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ mod must {
|
||||||
backup_file_with_text_contents(&source, repository_path, secret, &test_filename, "some contents").unwrap();
|
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();
|
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 {
|
for filepath in all_repo_files {
|
||||||
let mut file = File::open(&filepath).unwrap();
|
let mut file = File::open(&filepath).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue