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 {
|
pub fn get_rs_type(&self) -> TokenStream {
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
let ident: TokenStream = match self.col_type {
|
let ident: TokenStream = match self.col_type {
|
||||||
ColumnType::Char(_)
|
ColumnType::Char(_)
|
||||||
| ColumnType::String(_)
|
| ColumnType::String(_)
|
||||||
|
@ -25,6 +25,7 @@ pub trait MockDatabaseTrait: Send {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl MockDatabaseConnector {
|
impl MockDatabaseConnector {
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub fn accepts(string: &str) -> bool {
|
pub fn accepts(string: &str) -> bool {
|
||||||
#[cfg(feature = "sqlx-mysql")]
|
#[cfg(feature = "sqlx-mysql")]
|
||||||
if crate::SqlxMySqlConnector::accepts(string) {
|
if crate::SqlxMySqlConnector::accepts(string) {
|
||||||
@ -41,6 +42,7 @@ impl MockDatabaseConnector {
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub async fn connect(string: &str) -> Result<DatabaseConnection, DbErr> {
|
pub async fn connect(string: &str) -> Result<DatabaseConnection, DbErr> {
|
||||||
macro_rules! connect_mock_db {
|
macro_rules! connect_mock_db {
|
||||||
( $syntax: expr ) => {
|
( $syntax: expr ) => {
|
||||||
|
@ -290,6 +290,7 @@ impl From<ColumnType> for sea_query::ColumnType {
|
|||||||
|
|
||||||
impl From<sea_query::ColumnType> for ColumnType {
|
impl From<sea_query::ColumnType> for ColumnType {
|
||||||
fn from(col_type: sea_query::ColumnType) -> Self {
|
fn from(col_type: sea_query::ColumnType) -> Self {
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
match col_type {
|
match col_type {
|
||||||
sea_query::ColumnType::Char(s) => Self::Char(s),
|
sea_query::ColumnType::Char(s) => Self::Char(s),
|
||||||
sea_query::ColumnType::String(s) => Self::String(s),
|
sea_query::ColumnType::String(s) => Self::String(s),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user