Skip to content

Commit

Permalink
get the struct names right
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Sep 17, 2024
1 parent a877fdc commit eb4eb24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion codegen_rust/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ pub fn write_request_module(spec: &HirSpec, cfg: &Config, m: &mut Modified) -> R
let mut modules: Vec<(Ident, Ident)> = vec![];

for operation in &spec.operations {
modules.push((Ident(operation.file_name()), Ident(operation.request_struct_name())));
modules.push((
Ident(operation.file_name()),
operation.request_struct_name().to_rust_struct(),
));
let file = make_single_module(operation, &spec, cfg);
let fname = operation.file_name();
let path = src.join("request").join(&fname).with_extension("rs");
Expand Down

0 comments on commit eb4eb24

Please sign in to comment.