Skip to content

Commit

Permalink
Disable clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jutuon committed Apr 15, 2024
1 parent 25f48ba commit a0ddbe5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/codegen/data_class/impl_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ pub fn generate_impl_class(file: &ValidatedFile, class: &ValidatedClass) -> Resu
} else {
format!("extends {}", abstract_class_name)
}
} else if file.flutter_foundation_import_exists {
format!(
"with DiagnosticableTreeMixin implements {}",
abstract_class_name
)
} else {
format!("implements {}", abstract_class_name)
if file.flutter_foundation_import_exists {
format!(
"with DiagnosticableTreeMixin implements {}",
abstract_class_name
)
} else {
format!("implements {}", abstract_class_name)
}
};

let debug_fill_properties = if file.flutter_foundation_import_exists {
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[allow(clippy::collapsible_else_if)]

pub mod codegen;
pub mod config;
pub mod file_finder;
Expand Down

0 comments on commit a0ddbe5

Please sign in to comment.