diff --git a/sea-orm-codegen/rustfmt.toml b/sea-orm-codegen/rustfmt.toml new file mode 100644 index 00000000..2555d91f --- /dev/null +++ b/sea-orm-codegen/rustfmt.toml @@ -0,0 +1,3 @@ +ignore = [ + "tests/entity/*.rs", +] \ No newline at end of file diff --git a/sea-orm-codegen/tests/entity/fruit.rs b/sea-orm-codegen/tests/entity/fruit.rs index 7ff7d9b8..72c37c1b 100644 --- a/sea-orm-codegen/tests/entity/fruit.rs +++ b/sea-orm-codegen/tests/entity/fruit.rs @@ -15,7 +15,7 @@ impl EntityName for Entity { pub struct Model { pub id: i32, pub name: String, - pub cake_id: Option, + pub cake_id: Option , } #[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)] diff --git a/sea-orm-codegen/tests/entity/vendor.rs b/sea-orm-codegen/tests/entity/vendor.rs index 2262519f..320400f4 100644 --- a/sea-orm-codegen/tests/entity/vendor.rs +++ b/sea-orm-codegen/tests/entity/vendor.rs @@ -15,7 +15,7 @@ impl EntityName for Entity { pub struct Model { pub id: i32, pub name: String, - pub fruit_id: Option, + pub fruit_id: Option , } #[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]