Skip to content

Commit

Permalink
Wersja
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Feb 3, 2024
1 parent 81b0aff commit 1744859
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions czkawka_cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ use czkawka_core::common_tool::DeleteMethod;
use czkawka_core::duplicate::HashType;
use czkawka_core::same_music::MusicSimilarity;
use czkawka_core::similar_images::SimilarityPreset;
use czkawka_core::MAIN_SEPARATOR;
use czkawka_core::CZKAWKA_VERSION;

#[derive(clap::Parser)]
#[clap(
name = "czkawka",
help_template = HELP_TEMPLATE,
version = MAIN_SEPARATOR
version = CZKAWKA_VERSION
)]
pub struct Args {
#[command(subcommand)]
Expand Down
4 changes: 2 additions & 2 deletions czkawka_core/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::common_messages::Messages;
use crate::common_tool::DeleteMethod;
use crate::common_traits::ResultEntry;
use crate::duplicate::make_hard_link;
use crate::MAIN_SEPARATOR;
use crate::CZKAWKA_VERSION;

static NUMBER_OF_THREADS: state::InitCell<usize> = state::InitCell::new();
pub const DEFAULT_THREAD_SIZE: usize = 8 * 1024 * 1024; // 8 MB
Expand Down Expand Up @@ -78,7 +78,7 @@ pub fn print_version_mode() {

let info = os_info::get();
info!(
"App version: {MAIN_SEPARATOR}, {debug_release} mode, rust {rust_version}, os {} {} [{} {}], {processors} cpu/threads",
"App version: {CZKAWKA_VERSION}, {debug_release} mode, rust {rust_version}, os {} {} [{} {}], {processors} cpu/threads",
info.os_type(),
info.version(),
std::env::consts::ARCH,
Expand Down
2 changes: 1 addition & 1 deletion czkawka_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ pub mod common_tool;
pub mod common_traits;
pub mod localizer_core;

pub const MAIN_SEPARATOR: &str = env!("CARGO_PKG_VERSION");
pub const CZKAWKA_VERSION: &str = env!("CARGO_PKG_VERSION");
4 changes: 1 addition & 3 deletions krokiet/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::path::PathBuf;

use crate::CurrentTab;
use crate::ExcludedDirectoriesModel;
use crate::IncludedDirectoriesModel;
use crate::{CurrentTab, ExcludedDirectoriesModel, IncludedDirectoriesModel};
use slint::{ModelRc, SharedString, VecModel};

// Remember to match updated this according to ui/main_lists.slint and connect_scan.rs files
Expand Down

0 comments on commit 1744859

Please sign in to comment.