File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -15,24 +15,25 @@ cc = "1.0"
1515chrono = " 0.4"
1616clap = " 2.29"
1717crossbeam = " 0.3"
18- csv = " 1.0.0-beta.5 "
18+ csv = " 1.0"
1919data-encoding = " 2.1.0"
2020env_logger = " 0.4"
2121error-chain = " 0.11"
2222flate2 = " 1.0"
2323glob = " 0.2"
24+ hyper = " 0.11"
25+ image = " 0.19"
26+ lazy_static = " 1.0"
2427log = " 0.3"
2528log4rs = " 0.7"
26- image = " 0.18"
27- lazy_static = " 1.0"
2829memmap = " 0.6"
2930mime = " 0.3"
3031num = " 0.1"
3132num_cpus = " 1.8"
3233petgraph = " 0.4"
3334rand = " 0.4"
34- rayon = " 0.9 "
35- regex = " 0.2 "
35+ rayon = " 1.0 "
36+ regex = " 1.0 "
3637reqwest = " 0.8"
3738ring = " 0.13.0-alpha"
3839same-file = " 1.0"
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ extern crate image;
212212extern crate rayon;
213213
214214use std::path::Path;
215- use std::fs::{ create_dir_all, File} ;
215+ use std::fs::create_dir_all;
216216
217217# use error_chain::ChainedError;
218218use glob::{glob_with, MatchOptions};
@@ -267,10 +267,10 @@ where
267267 PB: AsRef<Path>,
268268{
269269 let img = image::open(original.as_ref())?;
270- let fout = &mut File::create( thumb_dir.as_ref().join(original))? ;
270+ let file_path = thumb_dir.as_ref().join(original);
271271
272272 Ok(img.resize(longest_edge, longest_edge, FilterType::Nearest)
273- .save(fout, image::JPEG )?)
273+ .save(file_path )?)
274274}
275275#
276276# quick_main!(run);
You can’t perform that action at this time.
0 commit comments