Enable clippy

This commit is contained in:
Alexandre Kirszenberg committed 2022-01-08 16:35:26 +01:00
1 parent 4f1894ff5c
commit b6903bf558
14 files changed
+46 -50

No files matched your search

+1 -12
View File
@@ -270,7 +270,7 @@ mod field_info {
pub setter: SetterSettings,
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct SetterSettings {
pub doc: Option<syn::Expr>,
pub skip: bool,
@@ -278,17 +278,6 @@ mod field_info {
pub strip_option: bool,
}
impl Default for SetterSettings {
fn default() -> Self {
Self {
doc: Default::default(),
skip: false,
auto_into: false,
strip_option: false,
}
}
}
impl FieldBuilderAttr {
pub fn with(mut self, attrs: &[syn::Attribute]) -> Result<Self, Error> {
let mut skip_tokens = None;