Hotfix - doc test fail, Ignore fmt entity files under codegen/tests

This commit is contained in:
Billy Chan 2021-07-14 10:27:12 +08:00
parent bcd221a915
commit b4abf15169
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,3 @@
ignore = [
"tests/entity/*.rs",
]

View File

@ -15,7 +15,7 @@ impl EntityName for Entity {
pub struct Model { pub struct Model {
pub id: i32, pub id: i32,
pub name: String, pub name: String,
pub cake_id: Option<i32>, pub cake_id: Option<i32> ,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)] #[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]

View File

@ -15,7 +15,7 @@ impl EntityName for Entity {
pub struct Model { pub struct Model {
pub id: i32, pub id: i32,
pub name: String, pub name: String,
pub fruit_id: Option<i32>, pub fruit_id: Option<i32> ,
} }
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)] #[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]