From 85b7386158a7489743278ea02277de45903fc8ab Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 6 Oct 2025 11:45:21 +0200 Subject: [PATCH] nak: avoid errors when generated code is empty Part-of: --- src/nouveau/compiler/latencies/lat_rs_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/compiler/latencies/lat_rs_gen.py b/src/nouveau/compiler/latencies/lat_rs_gen.py index b537ca16c34..8b35e1bdb06 100644 --- a/src/nouveau/compiler/latencies/lat_rs_gen.py +++ b/src/nouveau/compiler/latencies/lat_rs_gen.py @@ -47,6 +47,7 @@ impl ${to_camel(reg_file)}Latency${sm.upper()} { use ${enum_name}::*; match ${bigcat.header.cat1} { % for cat in bigcat.header.cats: + #[allow(clippy::match_single_binding)] ${to_camel(cat)} => match ${bigcat.header.cat0} { <% has_non = False %> % for cat2 in bigcat.header.cats: