clippy
This commit is contained in:
parent
626c25614d
commit
1c0bf231af
@ -41,7 +41,7 @@ impl<'c> SchemaManager<'c> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Schema Creation
|
/// Schema Creation
|
||||||
impl<'c> SchemaManager<'c> {
|
impl SchemaManager<'_> {
|
||||||
pub async fn create_table(&self, stmt: TableCreateStatement) -> Result<(), DbErr> {
|
pub async fn create_table(&self, stmt: TableCreateStatement) -> Result<(), DbErr> {
|
||||||
self.exec_stmt(stmt).await
|
self.exec_stmt(stmt).await
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ impl<'c> SchemaManager<'c> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Schema Mutation
|
/// Schema Mutation
|
||||||
impl<'c> SchemaManager<'c> {
|
impl SchemaManager<'_> {
|
||||||
pub async fn alter_table(&self, stmt: TableAlterStatement) -> Result<(), DbErr> {
|
pub async fn alter_table(&self, stmt: TableAlterStatement) -> Result<(), DbErr> {
|
||||||
self.exec_stmt(stmt).await
|
self.exec_stmt(stmt).await
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ impl<'c> SchemaManager<'c> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Schema Inspection.
|
/// Schema Inspection.
|
||||||
impl<'c> SchemaManager<'c> {
|
impl SchemaManager<'_> {
|
||||||
pub async fn has_table<T>(&self, table: T) -> Result<bool, DbErr>
|
pub async fn has_table<T>(&self, table: T) -> Result<bool, DbErr>
|
||||||
where
|
where
|
||||||
T: AsRef<str>,
|
T: AsRef<str>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user