Skip to content

Commit

Permalink
fix query struct fields not public
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Sep 27, 2024
1 parent 15b4bb8 commit fa772ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pathgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn gen_fn(name: &str, op_type: &str, op: &Operation) -> String {
};
// Format as a struct field.
fn_query_params.push(format!(
"{}\t{}: Option<{}>,\n",
"{}\tpub {}: Option<{}>,\n",
make_comment(parameter_data.description, 1),
parameter_data.name.into_safe(),
bindgen::type_to_string(query_param_type)
Expand Down

0 comments on commit fa772ff

Please sign in to comment.