Svetlitski / fcp

A significantly faster alternative to the classic Unix cp(1) command, copying large files and directories in a fraction of the time.
BSD 3-Clause "New" or "Revised" License
767 stars 19 forks source link

chore: update to build with rust 1.80 #42

Open chenrui333 opened 3 months ago

chenrui333 commented 3 months ago

seeing some time related failure

error[E0282]: type annotations needed
  --> src/main.rs:27:44
   |
27 |     let args: Box<_> = env::args().skip(1).collect();
   |                                            ^^^^^^^ cannot infer type of the type parameter `B` declared on the method `collect`
28 |     for arg in args.iter() {
   |                     ---- type must be known at this point
   |
help: consider specifying the generic argument
   |
27 |     let args: Box<_> = env::args().skip(1).collect::<Vec<_>>();
   |                                                   ++++++++++

For more information about this error, try `rustc --explain E0282`.

relates to https://github.com/Homebrew/homebrew-core/pull/178436