Skip to content

Commit

Permalink
Fix clippy warnings (#1188)
Browse files Browse the repository at this point in the history
* Fix clippy warnings

* More fixes
  • Loading branch information
billy1624 authored Nov 4, 2022
1 parent 9af5885 commit 9dfc481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sea-orm-cli/src/commands/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub async fn run_generate_command(
// Closures for filtering tables
let filter_tables = |table: &str| -> bool {
if !tables.is_empty() {
return tables.contains(&table);
return tables.contains(table);
}

true
Expand Down
2 changes: 1 addition & 1 deletion sea-orm-macros/src/derives/entity_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
if let Fields::Named(fields) = item_struct.fields {
for field in fields.named {
if let Some(ident) = &field.ident {
let original_field_name = trim_starting_raw_identifier(&ident);
let original_field_name = trim_starting_raw_identifier(ident);
let mut field_name =
Ident::new(&original_field_name.to_camel_case(), Span::call_site());

Expand Down

0 comments on commit 9dfc481

Please sign in to comment.