Skip to content

Commit

Permalink
bumped crate versions
Browse files Browse the repository at this point in the history
`csv`, `hyper`, `regex`, `rayon`, `image`
  • Loading branch information
budziq committed May 14, 2018
1 parent f8c48a0 commit d7c86d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@ cc = "1.0"
chrono = "0.4"
clap = "2.29"
crossbeam = "0.3"
csv = "1.0.0-beta.5"
csv = "1.0"
data-encoding = "2.1.0"
env_logger = "0.4"
error-chain = "0.11"
flate2 = "1.0"
glob = "0.2"
hyper = "0.11"
image = "0.19"
lazy_static = "1.0"
log = "0.3"
log4rs = "0.7"
image = "0.18"
lazy_static = "1.0"
memmap = "0.6"
mime = "0.3"
num = "0.1"
num_cpus = "1.8"
petgraph = "0.4"
rand = "0.4"
rayon = "0.9"
regex = "0.2"
rayon = "1.0"
regex = "1.0"
reqwest = "0.8"
ring = "0.13.0-alpha"
same-file = "1.0"
Expand Down
6 changes: 3 additions & 3 deletions src/concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ extern crate image;
extern crate rayon;
use std::path::Path;
use std::fs::{create_dir_all, File};
use std::fs::create_dir_all;
# use error_chain::ChainedError;
use glob::{glob_with, MatchOptions};
Expand Down Expand Up @@ -267,10 +267,10 @@ where
PB: AsRef<Path>,
{
let img = image::open(original.as_ref())?;
let fout = &mut File::create(thumb_dir.as_ref().join(original))?;
let file_path = thumb_dir.as_ref().join(original);
Ok(img.resize(longest_edge, longest_edge, FilterType::Nearest)
.save(fout, image::JPEG)?)
.save(file_path)?)
}
#
# quick_main!(run);
Expand Down

0 comments on commit d7c86d0

Please sign in to comment.