Skip to content

Commit

Permalink
Panic
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Sep 27, 2024
1 parent 633cae8 commit 24cdedb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
28 changes: 18 additions & 10 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@

### Core

- Removed some unnecessary panics
- Simplified usage of structures when sending/receiving progress information
- Added Median hash algorithm
- Fixed compilation with Rust >=1.80
- Extracted tool input parameters, that helped to find not used parameters
- Added new mod to find similar music only in groups with similar title tag
- Removed some unnecessary panics - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Simplified usage of structures when sending/receiving progress
information - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Added Median hash algorithm - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Fixed compilation with Rust >=1.80 - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Extracted tool input parameters, that helped to find not used
parameters - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Added new mod to find similar music only in groups with similar title
tag - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Printing to file/console no longer uses two backslashes in windows
paths - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Fixed panic when failed to decode raw picture - [#1355](https://github.com/qarmin/czkawka/pull/1355)

### Krokiet

- Fixed invalid default hash size in similar images
- Fixed and added more input parameters to the application
- Fixed invalid default hash size in similar images - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Fixed and added more input parameters to the application - [#1354](https://github.com/qarmin/czkawka/pull/1354)

### GTK GUI

- Fixed and added more input parameters to the application
- Fixed and added more input parameters to the application - [#1355](https://github.com/qarmin/czkawka/pull/1355)

### CLI

- Fixed and added more input parameters to the application
- Fixed and added more input parameters to the application - [#1354](https://github.com/qarmin/czkawka/pull/1354)
- Fixed crash when stopping scan mutliple times - [#1355](https://github.com/qarmin/czkawka/pull/1355)
- Print results also in debug build - [#1355](https://github.com/qarmin/czkawka/pull/1355)

## Version 7.0.0 - 19.02.2024r

Expand Down
4 changes: 2 additions & 2 deletions czkawka_core/src/big_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum SearchMode {
SmallestFiles,
}

#[derive(Default)]
#[derive(Debug, Default)]
pub struct Info {
pub number_of_real_files: usize,
}
Expand Down Expand Up @@ -126,7 +126,7 @@ impl DebugPrint for BigFile {
}

println!("### INDIVIDUAL DEBUG PRINT ###");
println!("Big files size {} in {} groups", self.information.number_of_real_files, self.big_files.len());
println!("Info: {:?}", self.information);
println!("Number of files to check - {}", self.get_params().number_of_files_to_check);
self.debug_print_common();
println!("-----------------------------------------");
Expand Down
2 changes: 1 addition & 1 deletion czkawka_core/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ pub fn get_dynamic_image_from_raw_image(path: impl AsRef<Path>) -> Result<Dynami

let processor = Processor::new();
let start_timer = Instant::now();
let processed = processor.process_8bit(&buf).expect("processing successful");
let processed = processor.process_8bit(&buf)?;
println!("Processing took {:?}", start_timer.elapsed());

let width = processed.width();
Expand Down
2 changes: 1 addition & 1 deletion czkawka_core/src/similar_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl SimilarImages {
}
#[cfg(not(feature = "heif"))]
{
img = Self::get_normal_heif_image(&file_entry)?;
img = Self::get_normal_heif_image(file_entry)?;
}
} else {
match file_entry.image_type {
Expand Down

0 comments on commit 24cdedb

Please sign in to comment.