Skip to content

Commit c136447

Browse files
authored
Disable clippy::pedantic lints on macro output. (#100)
1 parent 5e01e27 commit c136447

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

bitcode_derive/src/decode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ impl crate::shared::Derive<{ Item::COUNT }> for Decode {
318318
let private = private(crate_name);
319319

320320
quote! {
321+
#[allow(clippy::pedantic)]
321322
const _: () = {
322323
impl #impl_generics #private::Decode<#de> for #input_ty #where_clause {
323324
type Decoder = #decoder_ty;

bitcode_derive/src/encode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ impl crate::shared::Derive<{ Item::COUNT }> for Encode {
271271
let private = private(crate_name);
272272

273273
quote! {
274+
#[allow(clippy::pedantic)]
274275
const _: () = {
275276
impl #impl_generics #private::Encode for #input_ty #where_clause {
276277
type Encoder = #encoder_ty;

src/derive/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl<'a, T> Decode<'a> for PhantomData<T> {
216216
macro_rules! impl_tuples {
217217
($(($($n:tt $name:ident)*))+) => {
218218
$(
219-
#[allow(unused, clippy::unused_unit)]
219+
#[allow(unused, clippy::unused_unit, clippy::pedantic)]
220220
const _: () = {
221221
impl<$($name: Encode,)*> Encode for ($($name,)*) {
222222
type Encoder = TupleEncoder<$($name,)*>;

0 commit comments

Comments
 (0)