From b4abf15169b35661970d1d107341c7342864f339 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Wed, 14 Jul 2021 10:27:12 +0800 Subject: [PATCH] Hotfix - doc test fail, Ignore fmt entity files under codegen/tests --- sea-orm-codegen/rustfmt.toml | 3 +++ sea-orm-codegen/tests/entity/fruit.rs | 2 +- sea-orm-codegen/tests/entity/vendor.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 sea-orm-codegen/rustfmt.toml 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)]