Skip to content

Commit

Permalink
refactor: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Oct 29, 2021
1 parent 8b32bff commit dcb9511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion synth/src/datasource/mysql_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ impl RelationalDataSource for MySqlDataSource {
Ok(content)
}

fn extend_parameterised_query(query: &mut String, _curr_index: usize, query_params: Vec<Value>) {
fn extend_parameterised_query(
query: &mut String,
_curr_index: usize,
query_params: Vec<Value>,
) {
let extend = query_params.len();

query.push('(');
Expand Down
2 changes: 1 addition & 1 deletion synth/src/datasource/relational_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub trait RelationalDataSource: DataSource {
.as_object()
.expect("This is always an object (sampler contract)");

let mut curr_query_params : Vec<Value> = row_obj.values().cloned().collect();
let mut curr_query_params: Vec<Value> = 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);
Expand Down

0 comments on commit dcb9511

Please sign in to comment.