File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -15,24 +15,25 @@ cc = "1.0"
15
15
chrono = " 0.4"
16
16
clap = " 2.29"
17
17
crossbeam = " 0.3"
18
- csv = " 1.0.0-beta.5 "
18
+ csv = " 1.0"
19
19
data-encoding = " 2.1.0"
20
20
env_logger = " 0.4"
21
21
error-chain = " 0.11"
22
22
flate2 = " 1.0"
23
23
glob = " 0.2"
24
+ hyper = " 0.11"
25
+ image = " 0.19"
26
+ lazy_static = " 1.0"
24
27
log = " 0.3"
25
28
log4rs = " 0.7"
26
- image = " 0.18"
27
- lazy_static = " 1.0"
28
29
memmap = " 0.6"
29
30
mime = " 0.3"
30
31
num = " 0.1"
31
32
num_cpus = " 1.8"
32
33
petgraph = " 0.4"
33
34
rand = " 0.4"
34
- rayon = " 0.9 "
35
- regex = " 0.2 "
35
+ rayon = " 1.0 "
36
+ regex = " 1.0 "
36
37
reqwest = " 0.8"
37
38
ring = " 0.13.0-alpha"
38
39
same-file = " 1.0"
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ extern crate image;
212
212
extern crate rayon;
213
213
214
214
use std::path::Path;
215
- use std::fs::{ create_dir_all, File} ;
215
+ use std::fs::create_dir_all;
216
216
217
217
# use error_chain::ChainedError;
218
218
use glob::{glob_with, MatchOptions};
@@ -267,10 +267,10 @@ where
267
267
PB: AsRef<Path>,
268
268
{
269
269
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);
271
271
272
272
Ok(img.resize(longest_edge, longest_edge, FilterType::Nearest)
273
- .save(fout, image::JPEG )?)
273
+ .save(file_path )?)
274
274
}
275
275
#
276
276
# quick_main!(run);
You can’t perform that action at this time.
0 commit comments