Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed Sep 13, 2024
1 parent 92f77c8 commit d107b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion derive/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Fields> {
fn perfect_derive_fields(_input: &DeriveInput) -> Option<Fields> {
None
}
}
Expand Down

0 comments on commit d107b2a

Please sign in to comment.