Skip to content

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj committed Nov 4, 2024
1 parent 70c44d3 commit eaeb965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rust/client_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ pub struct RequestBodyParams {
}

impl RequestBodyParams {
pub fn has_single_content_type(&self) -> bool {
fn has_single_content_type(&self) -> bool {
self.params.len() == 1
}

pub fn get_default_request_body_param(&self) -> Option<&Vec<Param>> {
fn get_default_request_body_param(&self) -> Option<&Vec<Param>> {
self.params
.values()
.next()
Expand Down
4 changes: 2 additions & 2 deletions src/rust/lib_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ mod tests {
"lib",
&[
ModuleDef {
name: ModuleName::new("abc".to_string()),
name: ModuleName::new("abc"),
exports: vec!["C".to_string(), "B".to_string()],
},
ModuleDef {
name: ModuleName::new("xyz".to_string()),
name: ModuleName::new("xyz"),
exports: vec!["A".to_string(), "Y".to_string()],
},
],
Expand Down

0 comments on commit eaeb965

Please sign in to comment.