diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 605497932..d4f0498b2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -239,12 +239,12 @@ jobs: examples/basic, examples/graphql_example, examples/jsonrpsee_example, - examples/loco_example, - examples/loco_starter, - examples/loco_seaography, + # examples/loco_example, + # examples/loco_starter, + # examples/loco_seaography, examples/poem_example, examples/proxy_gluesql_example, - examples/react_admin, + # examples/react_admin, examples/rocket_example, examples/rocket_okapi_example, examples/salvo_example, diff --git a/sea-orm-codegen/src/entity/transformer.rs b/sea-orm-codegen/src/entity/transformer.rs index c994d9f12..001002722 100644 --- a/sea-orm-codegen/src/entity/transformer.rs +++ b/sea-orm-codegen/src/entity/transformer.rs @@ -57,7 +57,7 @@ impl EntityTransformer { > 0; col }) - .map(|col| { + .inspect(|col| { if let sea_query::ColumnType::Enum { name, variants } = col.get_inner_col_type() { enums.insert( @@ -68,7 +68,6 @@ impl EntityTransformer { }, ); } - col }) .collect(); let mut ref_table_counts: BTreeMap = BTreeMap::new(); diff --git a/src/schema/entity.rs b/src/schema/entity.rs index 7acabab5c..dd2da733a 100644 --- a/src/schema/entity.rs +++ b/src/schema/entity.rs @@ -144,11 +144,7 @@ where continue; } let stmt = Index::create() - .name(&format!( - "idx-{}-{}", - entity.to_string(), - column.to_string() - )) + .name(format!("idx-{}-{}", entity.to_string(), column.to_string())) .table(entity) .col(column) .to_owned(); @@ -177,7 +173,7 @@ where for primary_key in E::PrimaryKey::iter() { idx_pk.col(primary_key); } - stmt.primary_key(idx_pk.name(&format!("pk-{}", entity.to_string())).primary()); + stmt.primary_key(idx_pk.name(format!("pk-{}", entity.to_string())).primary()); } for relation in E::Relation::iter() {