Fix clippy warnings
This commit is contained in:
parent
da2fd9204b
commit
b1d28db5ad
@ -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(_)
|
||||
|
@ -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<DatabaseConnection, DbErr> {
|
||||
macro_rules! connect_mock_db {
|
||||
( $syntax: expr ) => {
|
||||
|
@ -290,6 +290,7 @@ impl From<ColumnType> for sea_query::ColumnType {
|
||||
|
||||
impl From<sea_query::ColumnType> 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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user