diff --git a/sea-orm-codegen/src/entity/column.rs b/sea-orm-codegen/src/entity/column.rs index 9a6cf4dce..6a630da66 100644 --- a/sea-orm-codegen/src/entity/column.rs +++ b/sea-orm-codegen/src/entity/column.rs @@ -22,6 +22,7 @@ impl Column { } pub fn get_rs_type(&self) -> TokenStream { + #[allow(unreachable_patterns)] let ident: TokenStream = match self.col_type { ColumnType::Char(_) | ColumnType::String(_) diff --git a/src/driver/mock.rs b/src/driver/mock.rs index 7de6aaaf6..0a1629bf0 100644 --- a/src/driver/mock.rs +++ b/src/driver/mock.rs @@ -25,6 +25,7 @@ pub trait MockDatabaseTrait: Send { } impl MockDatabaseConnector { + #[allow(unused_variables)] pub fn accepts(string: &str) -> bool { #[cfg(feature = "sqlx-mysql")] if crate::SqlxMySqlConnector::accepts(string) { @@ -41,6 +42,7 @@ impl MockDatabaseConnector { false } + #[allow(unused_variables)] pub async fn connect(string: &str) -> Result { macro_rules! connect_mock_db { ( $syntax: expr ) => { diff --git a/src/entity/column.rs b/src/entity/column.rs index e9c3b759e..045a85ba6 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -290,6 +290,7 @@ impl From for sea_query::ColumnType { impl From for ColumnType { fn from(col_type: sea_query::ColumnType) -> Self { + #[allow(unreachable_patterns)] match col_type { sea_query::ColumnType::Char(s) => Self::Char(s), sea_query::ColumnType::String(s) => Self::String(s),