diff --git a/scylla-cql/src/types/serialize/row.rs b/scylla-cql/src/types/serialize/row.rs index f4c107bad3..c8f04cc6bc 100644 --- a/scylla-cql/src/types/serialize/row.rs +++ b/scylla-cql/src/types/serialize/row.rs @@ -1141,6 +1141,7 @@ mod tests { // Do not remove. It's not used in tests but we keep it here to check that // we properly ignore warnings about unused variables, unnecessary `mut`s // etc. that usually pop up when generating code for empty structs. + #[allow(unused)] #[derive(SerializeRow)] #[scylla(crate = crate)] struct TestRowWithNoColumns {} diff --git a/scylla-cql/src/types/serialize/value.rs b/scylla-cql/src/types/serialize/value.rs index 39403f3c48..6f917f8de4 100644 --- a/scylla-cql/src/types/serialize/value.rs +++ b/scylla-cql/src/types/serialize/value.rs @@ -2038,6 +2038,7 @@ mod tests { // Do not remove. It's not used in tests but we keep it here to check that // we properly ignore warnings about unused variables, unnecessary `mut`s // etc. that usually pop up when generating code for empty structs. + #[allow(unused)] #[derive(SerializeCql)] #[scylla(crate = crate)] struct TestUdtWithNoFields {} @@ -2596,6 +2597,7 @@ mod tests { assert_eq!(reference, udt); } + #[allow(unused)] #[derive(SerializeCql, Debug)] #[scylla(crate = crate, flavor = "enforce_order", skip_name_checks)] struct TestUdtWithSkippedNameChecks { diff --git a/scylla/tests/integration/hygiene.rs b/scylla/tests/integration/hygiene.rs index 85c753589e..a3b400f474 100644 --- a/scylla/tests/integration/hygiene.rs +++ b/scylla/tests/integration/hygiene.rs @@ -64,6 +64,7 @@ macro_rules! test_crate { assert_eq!(sv, sv2); } + #[allow(unused)] #[derive(_scylla::macros::SerializeCql, _scylla::macros::SerializeRow)] #[scylla(crate = _scylla)] struct TestStructNew {