Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Oct 25, 2019
1 parent 2ae1255 commit 12e6cad
Show file tree
Hide file tree
Showing 7 changed files with 34,846 additions and 34,950 deletions.
187 changes: 38 additions & 149 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ log = "0.4"
env_logger = "0.6"

[dev-dependencies]
assert_fs = "0.10"
assert_fs = "0.11"
6 changes: 3 additions & 3 deletions codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ azure-devops = { project = "crate-ci", pipeline = "typos" }
codecov = { repository = "crate-ci/typos" }

[dependencies]
phf = { version = "0.7", features = ["unicase"] }
phf_codegen = "0.7"
phf = { version = "0.8", features = ["unicase"] }
phf_codegen = "0.8"
csv = "1.0"
unicase = "1.1"
unicase = "2.5"
codegenrs = "0.1"
structopt = "0.3"
5 changes: 3 additions & 2 deletions codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ fn generate<W: std::io::Write>(input: &[u8], file: &mut W) {
.collect();
for record in &records {
let value = format!(r#""{}""#, &record[1]);
builder.entry(unicase::UniCase(&record[0]), &value);
builder.entry(unicase::UniCase::new(&record[0]), &value);
}
builder.build(file).unwrap();
let codegenned = builder.build();
writeln!(file, "{}", codegenned).unwrap();
writeln!(file, ";").unwrap();
}

Expand Down
4 changes: 2 additions & 2 deletions typos-dict/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ codecov = { repository = "crate-ci/typos" }

[dependencies]
typos = { version = "0.1", path = "../typos" }
phf = { version = "0.7", features = ["unicase"] }
unicase = "1.1"
phf = { version = "0.8", features = ["unicase"] }
unicase = "2.5"
log = "0.4"
2 changes: 1 addition & 1 deletion typos-dict/src/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn map_lookup(
// See https://github.com/rust-lang/rust/issues/28853#issuecomment-158735548
unsafe {
let key = ::std::mem::transmute::<_, &'static str>(key);
map.get(&UniCase(key)).cloned()
map.get(&UniCase::new(key)).cloned()
}
}

Expand Down
Loading

0 comments on commit 12e6cad

Please sign in to comment.