mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
Fix indent in regen.py; fix imports
This commit is contained in:
parent
c7e1a575a5
commit
ac80fcf220
2 changed files with 4 additions and 4 deletions
|
@ -117,8 +117,8 @@ def write_atom_macro(atoms, file_name):
|
||||||
|
|
||||||
with open(file_name, "wb") as f:
|
with open(file_name, "wb") as f:
|
||||||
f.write(PRELUDE)
|
f.write(PRELUDE)
|
||||||
f.write("use style::gecko_bindings::structs::nsIAtom;\n\n")
|
f.write("use gecko_bindings::structs::nsIAtom;\n\n")
|
||||||
f.write("use Atom;\n\n")
|
f.write("use string_cache::Atom;\n\n")
|
||||||
for source in SOURCES:
|
for source in SOURCES:
|
||||||
if source.TYPE != "nsIAtom":
|
if source.TYPE != "nsIAtom":
|
||||||
f.write("pub enum {} {{}}\n\n".format(source.TYPE))
|
f.write("pub enum {} {{}}\n\n".format(source.TYPE))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue