Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 14 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion databases/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[build-dependencies]
parsing = { path = "../parsing" }
phf_codegen = "0.11.3"
phf_codegen = "0.13.1"

[dependencies]
parsing = { path = "../parsing" }
Expand Down
10 changes: 5 additions & 5 deletions databases/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn gen_bugcheck() {
let mut generated_map = phf_codegen::Map::new();
let cache = CodeCache::new();
for (code, (name, url)) in cache.iter() {
generated_map.entry(code, &format!("({name:?}, {url:?})"));
generated_map.entry(code, format!("({name:?}, {url:?})"));
}
write!(
&mut generated_file,
Expand All @@ -44,9 +44,9 @@ fn gen_amd_cpus() {
// if an entry wasn't already added
if entries.insert(cpu.name.clone()) {
for attr in cpu.attributes {
attributes_map.entry(format!("{:?}", attr.0), &format!("{:?}", attr.1));
attributes_map.entry(format!("{:?}", attr.0), format!("{:?}", attr.1));
}
generated_map.entry(cpu.name, &format!("{}", attributes_map.build()));
generated_map.entry(cpu.name, format!("{}", attributes_map.build()));
}
}
write!(
Expand All @@ -71,9 +71,9 @@ fn gen_intel_cpus() {
// if an entry wasn't already added
if entries.insert(cpu.name.to_string()) {
for attr in cpu.attributes {
attributes_map.entry(format!("{:?}", attr.0), &format!("{:?}", attr.1));
attributes_map.entry(format!("{:?}", attr.0), format!("{:?}", attr.1));
}
generated_map.entry(cpu.name, &format!("{}", attributes_map.build()));
generated_map.entry(cpu.name, format!("{}", attributes_map.build()));
}
}
write!(
Expand Down
Loading