Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed May 3, 2024
1 parent 8687407 commit 33f4659
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sea-orm-codegen/src/entity/transformer.rs
Expand Up @@ -154,7 +154,7 @@ impl EntityTransformer {
RelationType::HasMany
};
rel.rel_type = rel_type;
rel.ref_table = table_name.clone();
rel.ref_table = table_name.to_string();
rel.columns = Vec::new();
rel.ref_columns = Vec::new();
if let Some(vec) = inverse_relations.get_mut(&ref_table) {
Expand Down
2 changes: 2 additions & 0 deletions sea-orm-macros/src/strum/mod.rs
@@ -1,4 +1,6 @@
//! Source code adapted from https://github.com/Peternator7/strum

#![allow(dead_code)]

pub mod enum_iter;
pub mod helpers;
4 changes: 2 additions & 2 deletions src/executor/select.rs
Expand Up @@ -1054,8 +1054,8 @@ where
} else {
acc.insert(key, vec![value]);
}
} else if acc.get(&key).is_none() {
acc.insert(key, vec![]);
} else {
acc.entry(key).or_default();
}

acc
Expand Down

0 comments on commit 33f4659

Please sign in to comment.