Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Jan 20, 2025
1 parent 553672a commit 4461773
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
newline_style = "Unix"
max_width = 180
remove_nested_parens = true

# Enable only with nightly channel via - cargo +nightly fmt
imports_granularity = "Module"
Expand Down
2 changes: 1 addition & 1 deletion czkawka_cli/src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn get_progress_bar_for_collect_files() -> ProgressBar {
let pb = ProgressBar::new_spinner();
pb.enable_steady_tick(Duration::from_millis(120));
pb.set_style(
#[allow(clippy::literal_string_with_formatting_args)]
// #[allow(clippy::literal_string_with_formatting_args)] // TODO - enable after being backported to stable
ProgressStyle::with_template("{msg} {spinner:.blue}")
.expect("Failed to create progress bar style")
.tick_strings(&["▹▹▹▹▹", "▸▹▹▹▹", "▹▸▹▹▹", "▹▹▸▹▹", "▹▹▹▸▹", "▹▹▹▹▸", "▪▪▪▪▪"]),
Expand Down
3 changes: 0 additions & 3 deletions czkawka_gui/src/connect_things/connect_button_hardlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ fn hardlink_symlink(
for file_to_hardlink in symhardlink_data.files_to_symhardlink {
if let Err(e) = make_hard_link(&PathBuf::from(&symhardlink_data.original_data), &PathBuf::from(&file_to_hardlink)) {
add_text_to_text_view(text_view_errors, format!("{} {}, reason {}", flg!("hardlink_failed"), file_to_hardlink, e).as_str());
continue;
}
}
}
Expand All @@ -216,14 +215,12 @@ fn hardlink_symlink(
{
if let Err(e) = std::os::unix::fs::symlink(&symhardlink_data.original_data, &file_to_symlink) {
add_text_to_text_view(text_view_errors, flg!("delete_file_failed", name = file_to_symlink, reason = e.to_string()).as_str());
continue;
};
}
#[cfg(target_family = "windows")]
{
if let Err(e) = std::os::windows::fs::symlink_file(&symhardlink_data.original_data, &file_to_symlink) {
add_text_to_text_view(text_view_errors, flg!("delete_file_failed", name = file_to_symlink, reason = e.to_string()).as_str());
continue;
};
}
}
Expand Down

0 comments on commit 4461773

Please sign in to comment.