nouveau/headers: Run rustfmt on generated files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28255>
This commit is contained in:
committed by
Marge Bot
parent
2f6919e6c2
commit
591b5da49b
@@ -88,6 +88,10 @@ def main():
|
|||||||
try:
|
try:
|
||||||
with open(args.out_rs, 'w', encoding='utf-8') as f:
|
with open(args.out_rs, 'w', encoding='utf-8') as f:
|
||||||
f.write(TEMPLATE_RS.render(root=root))
|
f.write(TEMPLATE_RS.render(root=root))
|
||||||
|
try:
|
||||||
|
subprocess.run(['rustfmt', args.out_rs], check=True)
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
pass
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
# In the event there's an error, this imports some helpers from mako
|
# In the event there's an error, this imports some helpers from mako
|
||||||
|
|||||||
Reference in New Issue
Block a user