Skip to content

Commit acc7a24

Browse files
committed
Tests
1 parent 68d6c6f commit acc7a24

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

czkawka_core/src/bad_extensions.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ impl BadExtensions {
461461
}))
462462
})
463463
.while_some()
464-
.filter(std::option::Option::is_some)
465-
.map(std::option::Option::unwrap)
464+
.filter(Option::is_some)
465+
.map(Option::unwrap)
466466
.collect::<Vec<_>>();
467467

468468
// End thread which send info to gui

czkawka_core/src/broken_files.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ impl BrokenFiles {
562562
}
563563
})
564564
.while_some()
565-
.filter(std::option::Option::is_some)
566-
.map(std::option::Option::unwrap)
565+
.filter(Option::is_some)
566+
.map(Option::unwrap)
567567
.collect::<Vec<FileEntry>>();
568568

569569
// End thread which send info to gui

czkawka_core/src/duplicate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ impl DuplicateFinder {
532532
let progress_send = progress_sender.clone();
533533
let progress_thread_run = progress_thread_run.clone();
534534
let atomic_file_counter = atomic_file_counter.clone();
535-
let files_to_check = self.files_with_identical_size.values().map(std::vec::Vec::len).sum();
535+
let files_to_check = self.files_with_identical_size.values().map(Vec::len).sum();
536536
let checking_method = self.check_method;
537537
thread::spawn(move || loop {
538538
progress_send
@@ -691,7 +691,7 @@ impl DuplicateFinder {
691691
let progress_send = progress_sender.clone();
692692
let progress_thread_run = progress_thread_run.clone();
693693
let atomic_file_counter = atomic_file_counter.clone();
694-
let files_to_check = pre_checked_map.values().map(std::vec::Vec::len).sum();
694+
let files_to_check = pre_checked_map.values().map(Vec::len).sum();
695695
let checking_method = self.check_method;
696696
thread::spawn(move || loop {
697697
progress_send

czkawka_core/src/same_music.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ impl SameMusic {
476476
Some(Some(music_entry))
477477
})
478478
.while_some()
479-
.filter(std::option::Option::is_some)
480-
.map(std::option::Option::unwrap)
479+
.filter(Option::is_some)
480+
.map(Option::unwrap)
481481
.collect::<Vec<_>>();
482482

483483
// End thread which send info to gui

czkawka_core/src/similar_images.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ impl SimilarImages {
633633
Some(Some((file_entry, buf)))
634634
})
635635
.while_some()
636-
.filter(std::option::Option::is_some)
637-
.map(std::option::Option::unwrap)
636+
.filter(Option::is_some)
637+
.map(Option::unwrap)
638638
.collect::<Vec<(FileEntry, Vec<u8>)>>();
639639

640640
// End thread which send info to gui

czkawka_gui/src/help_functions.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,8 @@ mod test {
867867

868868
#[test]
869869
fn test_change_dimension_to_krotka() {
870-
assert_eq!(change_dimension_to_krotka("50x50".to_string()), (50, 50));
871-
assert_eq!(change_dimension_to_krotka("6000x6000".to_string()), (6000, 6000));
870+
assert_eq!(change_dimension_to_krotka("50x50"), (50, 50));
871+
assert_eq!(change_dimension_to_krotka("6000x6000"), (6000, 6000));
872872
}
873873

874874
#[gtk4::test]

0 commit comments

Comments
 (0)