diff --git a/derive/src/lib.rs b/derive/src/lib.rs index e597276..4ecfddf 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -6,7 +6,7 @@ mod traits; use proc_macro2::TokenStream; use quote::quote; -use syn::{parse_macro_input, DeriveInput, Result, Variant}; +use syn::{parse_macro_input, DeriveInput, Result}; use crate::traits::{ bytemuck_crate_name, AnyBitPattern, CheckedBitPattern, Contiguous, Derivable, diff --git a/derive/src/traits.rs b/derive/src/traits.rs index c31ab43..953787a 100644 --- a/derive/src/traits.rs +++ b/derive/src/traits.rs @@ -49,7 +49,7 @@ pub trait Derivable { /// should be overridden to return `Some`. /// /// The default is "the fields of a struct; unions and enums not supported". - fn perfect_derive_fields(input: &DeriveInput) -> Option { + fn perfect_derive_fields(_input: &DeriveInput) -> Option { None } }