Skip to content

Commit eaeb965

Browse files
committed
Fix checks
1 parent 70c44d3 commit eaeb965

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rust/client_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ pub struct RequestBodyParams {
192192
}
193193

194194
impl RequestBodyParams {
195-
pub fn has_single_content_type(&self) -> bool {
195+
fn has_single_content_type(&self) -> bool {
196196
self.params.len() == 1
197197
}
198198

199-
pub fn get_default_request_body_param(&self) -> Option<&Vec<Param>> {
199+
fn get_default_request_body_param(&self) -> Option<&Vec<Param>> {
200200
self.params
201201
.values()
202202
.next()

src/rust/lib_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ mod tests {
142142
"lib",
143143
&[
144144
ModuleDef {
145-
name: ModuleName::new("abc".to_string()),
145+
name: ModuleName::new("abc"),
146146
exports: vec!["C".to_string(), "B".to_string()],
147147
},
148148
ModuleDef {
149-
name: ModuleName::new("xyz".to_string()),
149+
name: ModuleName::new("xyz"),
150150
exports: vec!["A".to_string(), "Y".to_string()],
151151
},
152152
],

0 commit comments

Comments
 (0)