diff --git a/serde_valid_derive/src/types/field.rs b/serde_valid_derive/src/types/field.rs index 3eb73d6..2f8b5bf 100644 --- a/serde_valid_derive/src/types/field.rs +++ b/serde_valid_derive/src/types/field.rs @@ -17,7 +17,9 @@ pub trait Field { fn attrs(&self) -> &Vec; + #[allow(dead_code)] fn vis(&self) -> &syn::Visibility; + #[allow(dead_code)] fn ty(&self) -> &syn::Type; }