etnaviv: run rustfmt

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39347>
This commit is contained in:
Eric Engestrom 2026-01-16 12:22:51 +01:00 committed by Marge Bot
parent 3183ce9af2
commit 6f6710eda5

View file

@ -163,7 +163,9 @@ fn generate_from_rule_impl_opc(isa: &ISA) -> TokenStream2 {
/// Main derive function to generate the parser
fn derive_parser(input: TokenStream) -> TokenStream {
let mut ast: DeriveInput = parse_macro_input!(input as DeriveInput);
let root = Path::new(file!()).parent().expect("Failed to located parent");
let root = Path::new(file!())
.parent()
.expect("Failed to located parent");
let (isa_filename, static_rules_filename) = parse_derive(&ast);
let isa_path = Path::new(&root).join(isa_filename);
let static_rules_path = Path::new(&root).join(static_rules_filename);