1
0
Fork 0
mirror of synced 2024-05-03 03:52:58 +12:00
This commit is contained in:
Rafał Mikrut 2024-02-03 20:29:45 +01:00
parent 81b0afffc2
commit 17448599fa
4 changed files with 6 additions and 8 deletions

View file

@ -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)]

View file

@ -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
@ -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,

View file

@ -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");

View file

@ -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