Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bitcode_derive/src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ impl crate::shared::Derive<{ Item::COUNT }> for Decode {
let private = private(crate_name);

quote! {
#[allow(clippy::pedantic)]
const _: () = {
impl #impl_generics #private::Decode<#de> for #input_ty #where_clause {
type Decoder = #decoder_ty;
Expand Down
1 change: 1 addition & 0 deletions bitcode_derive/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ impl crate::shared::Derive<{ Item::COUNT }> for Encode {
let private = private(crate_name);

quote! {
#[allow(clippy::pedantic)]
const _: () = {
impl #impl_generics #private::Encode for #input_ty #where_clause {
type Encoder = #encoder_ty;
Expand Down
2 changes: 1 addition & 1 deletion src/derive/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl<'a, T> Decode<'a> for PhantomData<T> {
macro_rules! impl_tuples {
($(($($n:tt $name:ident)*))+) => {
$(
#[allow(unused, clippy::unused_unit)]
#[allow(unused, clippy::unused_unit, clippy::pedantic)]
const _: () = {
impl<$($name: Encode,)*> Encode for ($($name,)*) {
type Encoder = TupleEncoder<$($name,)*>;
Expand Down
Loading