Skip to content

Commit c75b016

Browse files
authored
squelch most clippy warnings in generated code (#809)
1 parent cfdefc6 commit c75b016

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

components/salsa-macro-rules/src/setup_accumulator_impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ macro_rules! setup_accumulator_impl {
1515
$ingredient:ident,
1616
]
1717
) => {
18+
#[allow(clippy::all)]
19+
#[allow(dead_code)]
1820
const _: () = {
1921
use salsa::plumbing as $zalsa;
2022
use salsa::plumbing::accumulator as $zalsa_struct;

components/salsa-macro-rules/src/setup_input_struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ macro_rules! setup_input_struct {
6363
#[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6464
$vis struct $Struct(salsa::Id);
6565

66+
#[allow(clippy::all)]
67+
#[allow(dead_code)]
6668
const _: () = {
6769
use salsa::plumbing as $zalsa;
6870
use $zalsa::input as $zalsa_struct;

components/salsa-macro-rules/src/setup_interned_struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ macro_rules! setup_interned_struct {
7878
std::marker::PhantomData < & $interior_lt salsa::plumbing::interned::Value <$StructWithStatic> >
7979
);
8080

81+
#[allow(clippy::all)]
82+
#[allow(dead_code)]
8183
const _: () = {
8284
use salsa::plumbing as $zalsa;
8385
use $zalsa::interned as $zalsa_struct;

components/salsa-macros/src/db.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ impl DbMacro {
8686
let zalsa = self.hygiene.ident("zalsa");
8787

8888
Ok(quote! {
89+
#[allow(clippy::all)]
90+
#[allow(dead_code)]
8991
const _: () = {
9092
use salsa::plumbing as #zalsa;
9193

0 commit comments

Comments
 (0)