Skip to content

Commit

Permalink
Merge pull request #11 from lionel1704/reqwuest-update
Browse files Browse the repository at this point in the history
Update version of reqwest dependency
  • Loading branch information
shnewto committed Oct 1, 2020
2 parents 6fc21af + ea08f68 commit e0e82bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pest = "2.1.2"
pest_derive = "2.1.0"
log = "0.4"
serde_json = "1.0.41"
reqwest = "0.9.22"
reqwest = { version = "0.10.8", features = ["blocking"] }

[dev-dependencies]
tempfile = "3"
2 changes: 1 addition & 1 deletion src/cmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ fn from_json_file(path: &Path) -> Result<HashMap<String, Vec<Vec<String>>>, Erro

pub fn download_and_serialize(path: &Path) -> Result<(), Error> {
let dict_string =
reqwest::get("https://raw.githubusercontent.com/cmusphinx/cmudict/master/cmudict.dict")?
reqwest::blocking::get("https://raw.githubusercontent.com/cmusphinx/cmudict/master/cmudict.dict")?
.text()?;

let cursor = io::Cursor::new(dict_string);
Expand Down

0 comments on commit e0e82bd

Please sign in to comment.