chore: fix clippy warnings
This commit is contained in:
parent
7ae5eec2c3
commit
20e00c3579
4 changed files with 5 additions and 5 deletions
|
@ -25,7 +25,7 @@ impl DatabaseStatements for MySqlConnection {
|
|||
}
|
||||
}
|
||||
|
||||
impl SupportsTransactionalDDL for MySqlConnection {}
|
||||
impl SupportsTransactionalDdl for MySqlConnection {}
|
||||
|
||||
impl DatabaseConnection for MySqlConnection {
|
||||
fn batch_execute(&mut self, query: &str) -> StdResult<()> {
|
||||
|
|
|
@ -23,7 +23,7 @@ impl DatabaseStatements for PostgresConnection {
|
|||
}
|
||||
}
|
||||
|
||||
impl SupportsTransactionalDDL for PostgresConnection {
|
||||
impl SupportsTransactionalDdl for PostgresConnection {
|
||||
#[inline]
|
||||
fn supports_transactional_ddl(&self) -> bool {
|
||||
true
|
||||
|
|
|
@ -13,14 +13,14 @@ pub trait DatabaseStatements {
|
|||
fn create_migration_table_stmt(&self) -> &'static str;
|
||||
}
|
||||
|
||||
pub trait SupportsTransactionalDDL {
|
||||
pub trait SupportsTransactionalDdl {
|
||||
#[inline]
|
||||
fn supports_transactional_ddl(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub trait DatabaseConnection: DatabaseStatements + SupportsTransactionalDDL {
|
||||
pub trait DatabaseConnection: DatabaseStatements + SupportsTransactionalDdl {
|
||||
fn batch_execute(&mut self, query: &str) -> StdResult<()>;
|
||||
|
||||
fn execute<'b>(&mut self, query: &str, params: ToSqlParams<'b>) -> StdResult<u64>;
|
||||
|
|
|
@ -9,7 +9,7 @@ pub mod prelude {
|
|||
pub use super::adapter::{ToSql, ToSqlParams, TryFromSql};
|
||||
pub use super::connection::{
|
||||
AnyConnection, DatabaseConnection, DatabaseStatements, OpenDatabaseConnection,
|
||||
SupportsTransactionalDDL,
|
||||
SupportsTransactionalDdl,
|
||||
};
|
||||
pub use super::migration::ManageMigration;
|
||||
pub use super::transaction::ManageTransaction;
|
||||
|
|
Reference in a new issue