Skip to content

Commit

Permalink
fix: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed Nov 20, 2024
1 parent 6248898 commit 5cd60c9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/common/meta/src/ddl/alter_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ impl AlterDatabaseProcedure {
.context
.table_metadata_manager
.schema_manager()
.exists(SchemaNameKey::new(
&self.data.catalog(),
&self.data.schema(),
))
.exists(SchemaNameKey::new(self.data.catalog(), self.data.schema()))
.await?;

ensure!(
Expand All @@ -65,7 +62,7 @@ impl AlterDatabaseProcedure {
}

pub async fn on_update_metadata(&mut self) -> Result<Status> {
let schema_name = SchemaNameKey::new(&self.data.catalog(), &self.data.schema());
let schema_name = SchemaNameKey::new(self.data.catalog(), self.data.schema());

self.data.task.validate()?;
let alter_kind = self.data.task.alter_expr.kind.as_ref().unwrap();
Expand Down Expand Up @@ -147,10 +144,10 @@ impl AlterDatabaseData {
}

pub fn catalog(&self) -> &str {
&self.task.catalog()
self.task.catalog()
}

pub fn schema(&self) -> &str {
&self.task.schema()
self.task.schema()
}
}

0 comments on commit 5cd60c9

Please sign in to comment.