From cb60c4afa3955a3723be93947f8ed823d9ddc522 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Mon, 20 Sep 2021 11:13:46 +0800 Subject: [PATCH] Keep match catchall --- sea-orm-codegen/src/entity/column.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sea-orm-codegen/src/entity/column.rs b/sea-orm-codegen/src/entity/column.rs index df286fc7..1f6815a0 100644 --- a/sea-orm-codegen/src/entity/column.rs +++ b/sea-orm-codegen/src/entity/column.rs @@ -43,6 +43,7 @@ impl Column { ColumnType::Uuid => "Uuid", ColumnType::Binary(_) => "Vec", ColumnType::Boolean => "bool", + _ => unimplemented!(), } .parse() .unwrap(); @@ -106,6 +107,7 @@ impl Column { let s = s.to_string(); quote! { ColumnType::Custom(#s.to_owned()).def() } } + _ => unimplemented!(), }; if !self.not_null { col_def.extend(quote! {