Projects STRLCPY deduplicator Commits f0dbf057
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    Cargo.lock
    skipped 83 lines
    84 84  checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
    85 85   
    86 86  [[package]]
    87  -name = "bytes"
    88  -version = "1.3.0"
    89  -source = "registry+https://github.com/rust-lang/crates.io-index"
    90  -checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c"
    91  - 
    92  -[[package]]
    93 87  name = "bytesize"
    94 88  version = "1.1.0"
    95 89  source = "registry+https://github.com/rust-lang/crates.io-index"
    skipped 243 lines
    339 333   "memmap2",
    340 334   "prettytable-rs",
    341 335   "rayon",
    342  - "thiserror",
    343  - "tokio",
    344 336   "unicode-segmentation",
    345 337  ]
    346 338   
    skipped 188 lines
    535 527   "number_prefix",
    536 528   "portable-atomic",
    537 529   "rayon",
    538  - "tokio",
    539 530   "unicode-width",
    540 531  ]
    541 532   
    skipped 114 lines
    656 647  ]
    657 648   
    658 649  [[package]]
    659  -name = "mio"
    660  -version = "0.8.5"
    661  -source = "registry+https://github.com/rust-lang/crates.io-index"
    662  -checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de"
    663  -dependencies = [
    664  - "libc",
    665  - "log",
    666  - "wasi 0.11.0+wasi-snapshot-preview1",
    667  - "windows-sys",
    668  -]
    669  - 
    670  -[[package]]
    671 650  name = "num-integer"
    672 651  version = "0.1.45"
    673 652  source = "registry+https://github.com/rust-lang/crates.io-index"
    skipped 41 lines
    715 694  checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee"
    716 695   
    717 696  [[package]]
    718  -name = "parking_lot"
    719  -version = "0.12.1"
    720  -source = "registry+https://github.com/rust-lang/crates.io-index"
    721  -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
    722  -dependencies = [
    723  - "lock_api",
    724  - "parking_lot_core",
    725  -]
    726  - 
    727  -[[package]]
    728 697  name = "parking_lot_core"
    729 698  version = "0.9.5"
    730 699  source = "registry+https://github.com/rust-lang/crates.io-index"
    skipped 5 lines
    736 705   "smallvec",
    737 706   "windows-sys",
    738 707  ]
    739  - 
    740  -[[package]]
    741  -name = "pin-project-lite"
    742  -version = "0.2.9"
    743  -source = "registry+https://github.com/rust-lang/crates.io-index"
    744  -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
    745 708   
    746 709  [[package]]
    747 710  name = "portable-atomic"
    skipped 176 lines
    924 887  checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb"
    925 888   
    926 889  [[package]]
    927  -name = "signal-hook-registry"
    928  -version = "1.4.0"
    929  -source = "registry+https://github.com/rust-lang/crates.io-index"
    930  -checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
    931  -dependencies = [
    932  - "libc",
    933  -]
    934  - 
    935  -[[package]]
    936 890  name = "smallvec"
    937 891  version = "1.10.0"
    938 892  source = "registry+https://github.com/rust-lang/crates.io-index"
    939 893  checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
    940  - 
    941  -[[package]]
    942  -name = "socket2"
    943  -version = "0.4.7"
    944  -source = "registry+https://github.com/rust-lang/crates.io-index"
    945  -checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd"
    946  -dependencies = [
    947  - "libc",
    948  - "winapi",
    949  -]
    950 894   
    951 895  [[package]]
    952 896  name = "strsim"
    skipped 70 lines
    1023 967   "libc",
    1024 968   "wasi 0.10.0+wasi-snapshot-preview1",
    1025 969   "winapi",
    1026  -]
    1027  - 
    1028  -[[package]]
    1029  -name = "tokio"
    1030  -version = "1.23.1"
    1031  -source = "registry+https://github.com/rust-lang/crates.io-index"
    1032  -checksum = "38a54aca0c15d014013256222ba0ebed095673f89345dd79119d912eb561b7a8"
    1033  -dependencies = [
    1034  - "autocfg",
    1035  - "bytes",
    1036  - "libc",
    1037  - "memchr",
    1038  - "mio",
    1039  - "num_cpus",
    1040  - "parking_lot",
    1041  - "pin-project-lite",
    1042  - "signal-hook-registry",
    1043  - "socket2",
    1044  - "tokio-macros",
    1045  - "windows-sys",
    1046  -]
    1047  - 
    1048  -[[package]]
    1049  -name = "tokio-macros"
    1050  -version = "1.8.2"
    1051  -source = "registry+https://github.com/rust-lang/crates.io-index"
    1052  -checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8"
    1053  -dependencies = [
    1054  - "proc-macro2",
    1055  - "quote",
    1056  - "syn",
    1057 970  ]
    1058 971   
    1059 972  [[package]]
    skipped 188 lines
  • ■ ■ ■ ■ ■
    Cargo.toml
    skipped 20 lines
    21 21  dashmap = { version = "5.4.0", features = ["rayon"] }
    22 22  fxhash = "0.2.1"
    23 23  globwalk = "0.8.1"
    24  -indicatif = { version = "0.17.2", features = ["rayon", "tokio"] }
     24 +indicatif = { version = "0.17.2", features = ["rayon"] }
    25 25  itertools = "0.10.5"
    26 26  memmap2 = "0.5.8"
    27 27  prettytable-rs = "0.10.0"
    28 28  rayon = "1.6.1"
    29  -thiserror = "1.0.38"
    30  -tokio = { version = "1.23.1", features = ["full"] }
    31 29  unicode-segmentation = "1.10.0"
    32 30   
  • ■ ■ ■ ■ ■
    src/main.rs
    skipped 8 lines
    9 9  use app::App;
    10 10  use clap::Parser;
    11 11   
    12  -#[tokio::main]
    13  -async fn main() -> Result<()> {
     12 +fn main() -> Result<()> {
    14 13   App::init(&params::Params::parse())
    15 14  }
    16 15   
  • ■ ■ ■ ■ ■ ■
    src/output.rs
    skipped 5 lines
    6 6  use colored::Colorize;
    7 7  use dashmap::DashMap;
    8 8  use indicatif::{ProgressBar, ProgressIterator, ProgressStyle};
    9  -use itertools::Itertools;
    10 9  use prettytable::{format, row, Table};
    11 10  use std::io::Write;
    12 11  use std::path::Path;
    13 12  use std::{fs, io};
    14 13  use unicode_segmentation::UnicodeSegmentation;
     14 +use itertools::Itertools;
    15 15   
    16 16  fn format_path(path: &Path, opts: &Params) -> Result<String> {
    17 17   let display_path = path
    skipped 59 lines
    77 77   .split(',')
    78 78   .filter(|element| !element.is_empty())
    79 79   .map(|index| index.parse::<usize>().unwrap_or_default())
    80  - .collect_vec();
     80 + .collect::<Vec<usize>>();
    81 81   
    82 82   if parsed_file_indices
    83 83   .clone()
    skipped 24 lines
    108 108   
    109 109   match scan_group_confirmation().unwrap() {
    110 110   true => {
    111  - file_manager::delete_files(files_to_delete.collect_vec()).ok();
     111 + file_manager::delete_files(files_to_delete.collect::<Vec<File>>()).ok();
    112 112   }
    113 113   false => println!("{}", "\nCancelled Delete Operation.".red()),
    114 114   }
    skipped 73 lines
Please wait...
Page is in error, reload to recover