mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update rand to 0.7 (fixes #24448)
This commit is contained in:
parent
4f8cfd9b48
commit
785a344e32
42 changed files with 200 additions and 254 deletions
|
@ -14,13 +14,16 @@ fn main() {
|
|||
.join("ascii_case_insensitive_html_attributes.rs");
|
||||
let mut file = BufWriter::new(File::create(&path).unwrap());
|
||||
|
||||
write!(&mut file, "{{ static SET: ::phf::Set<&'static str> = ").unwrap();
|
||||
let mut set = phf_codegen::Set::new();
|
||||
for name in ASCII_CASE_INSENSITIVE_HTML_ATTRIBUTES.split_whitespace() {
|
||||
set.entry(name);
|
||||
}
|
||||
set.build(&mut file).unwrap();
|
||||
write!(&mut file, "; &SET }}").unwrap();
|
||||
write!(
|
||||
&mut file,
|
||||
"{{ static SET: ::phf::Set<&'static str> = {}; &SET }}",
|
||||
set.build(),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#selectors>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue