Skip to content

Commit 2627ed0

Browse files
committed
fix: remove unnecessary clone
1 parent ed5fe70 commit 2627ed0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

schema-engine/commands/src/commands/create_migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub async fn create_migration(
3333
let dialect = connector.schema_dialect();
3434
// We need to start with the 'to', which is the Schema, in order to grab the
3535
// namespaces, in case we've got MultiSchema enabled.
36-
let to = dialect.schema_from_datamodel(sources.clone())?;
36+
let to = dialect.schema_from_datamodel(sources)?;
3737

3838
let from = migration_schema_cache
3939
.get_or_insert(&input.migrations_list.migration_directories, || async {

schema-engine/commands/src/commands/evaluate_data_loss.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub async fn evaluate_data_loss(
1818

1919
let dialect = connector.schema_dialect();
2020

21-
let to = dialect.schema_from_datamodel(sources.clone())?;
21+
let to = dialect.schema_from_datamodel(sources)?;
2222

2323
let from = migration_schema_cache
2424
.get_or_insert(&input.migrations_list.migration_directories, || async {

0 commit comments

Comments
 (0)