diff --git a/synth/src/datasource/mysql_datasource.rs b/synth/src/datasource/mysql_datasource.rs index 927b9902..38f52afe 100644 --- a/synth/src/datasource/mysql_datasource.rs +++ b/synth/src/datasource/mysql_datasource.rs @@ -194,7 +194,11 @@ impl RelationalDataSource for MySqlDataSource { Ok(content) } - fn extend_parameterised_query(query: &mut String, _curr_index: usize, query_params: Vec) { + fn extend_parameterised_query( + query: &mut String, + _curr_index: usize, + query_params: Vec, + ) { let extend = query_params.len(); query.push('('); diff --git a/synth/src/datasource/relational_datasource.rs b/synth/src/datasource/relational_datasource.rs index 7d8c9cee..e3ec7a19 100644 --- a/synth/src/datasource/relational_datasource.rs +++ b/synth/src/datasource/relational_datasource.rs @@ -110,7 +110,7 @@ pub trait RelationalDataSource: DataSource { .as_object() .expect("This is always an object (sampler contract)"); - let mut curr_query_params : Vec = row_obj.values().cloned().collect(); + let mut curr_query_params: Vec = row_obj.values().cloned().collect(); Self::extend_parameterised_query(&mut query, curr_index, curr_query_params.clone()); curr_index += curr_query_params.len(); query_params.append(&mut curr_query_params);