Skip to content

Commit d7c86d0

Browse files
committed
bumped crate versions
`csv`, `hyper`, `regex`, `rayon`, `image`
1 parent f8c48a0 commit d7c86d0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Cargo.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,25 @@ cc = "1.0"
1515
chrono = "0.4"
1616
clap = "2.29"
1717
crossbeam = "0.3"
18-
csv = "1.0.0-beta.5"
18+
csv = "1.0"
1919
data-encoding = "2.1.0"
2020
env_logger = "0.4"
2121
error-chain = "0.11"
2222
flate2 = "1.0"
2323
glob = "0.2"
24+
hyper = "0.11"
25+
image = "0.19"
26+
lazy_static = "1.0"
2427
log = "0.3"
2528
log4rs = "0.7"
26-
image = "0.18"
27-
lazy_static = "1.0"
2829
memmap = "0.6"
2930
mime = "0.3"
3031
num = "0.1"
3132
num_cpus = "1.8"
3233
petgraph = "0.4"
3334
rand = "0.4"
34-
rayon = "0.9"
35-
regex = "0.2"
35+
rayon = "1.0"
36+
regex = "1.0"
3637
reqwest = "0.8"
3738
ring = "0.13.0-alpha"
3839
same-file = "1.0"

src/concurrency.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ extern crate image;
212212
extern crate rayon;
213213
214214
use std::path::Path;
215-
use std::fs::{create_dir_all, File};
215+
use std::fs::create_dir_all;
216216
217217
# use error_chain::ChainedError;
218218
use 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);

0 commit comments

Comments
 (0)