Skip to content

Commit

Permalink
Update to unic-langid 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zbraniecki committed Sep 10, 2019
1 parent b67b72e commit 6576cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ coveralls = { repository = "projectfluent/fluent-locale-rs", branch = "master",
maintenance = { status = "actively-developed" }

[dependencies]
unic-langid = "0.4"
unic-langid = "0.5"

[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
unic-locale = { version = "0.4", features = ["macros"] }
criterion = "0.2"
unic-locale = { version = "0.5", features = ["macros"] }
criterion = "0.3"

[[bench]]
name = "negotiate"
Expand Down
2 changes: 1 addition & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct AcceptedLanguagesTestSet {
output: Vec<String>,
}

fn read_negotiate_testsets<P: AsRef<Path>>(path: P) -> Result<Vec<NegotiateTestSet>, Box<Error>> {
fn read_negotiate_testsets<P: AsRef<Path>>(path: P) -> Result<Vec<NegotiateTestSet>, Box<dyn Error>> {
let file = File::open(path)?;
let sets = serde_json::from_reader(file)?;
Ok(sets)
Expand Down

0 comments on commit 6576cdf

Please sign in to comment.