Skip to content

Commit cc8b272

Browse files
author
Gil Mizrahi
committed
review
1 parent 28ac22d commit cc8b272

File tree

1 file changed

+2
-2
lines changed
  • crates/query-engine/translation/src/translation/mutation

1 file changed

+2
-2
lines changed

crates/query-engine/translation/src/translation/mutation/insert.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ pub struct InsertMutation {
2121

2222
/// generate an insert mutation.
2323
pub fn generate(
24-
collection_name: &String,
24+
collection_name: &str,
2525
table_info: &database::TableInfo,
2626
) -> (String, InsertMutation) {
2727
let name = format!("v1_insert_{collection_name}");
2828

2929
let description = format!("Insert into the {collection_name} table",);
3030

3131
let insert_mutation = InsertMutation {
32-
collection_name: collection_name.clone(),
32+
collection_name: collection_name.to_string(),
3333
description,
3434
schema_name: ast::SchemaName(table_info.schema_name.clone()),
3535
table_name: ast::TableName(table_info.table_name.clone()),

0 commit comments

Comments
 (0)