diff --git a/src/rust/client_gen.rs b/src/rust/client_gen.rs
index 3d13608..b19f385 100644
--- a/src/rust/client_gen.rs
+++ b/src/rust/client_gen.rs
@@ -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> {
+ fn get_default_request_body_param(&self) -> Option<&Vec> {
self.params
.values()
.next()
diff --git a/src/rust/lib_gen.rs b/src/rust/lib_gen.rs
index 80e9da5..f01d9ad 100644
--- a/src/rust/lib_gen.rs
+++ b/src/rust/lib_gen.rs
@@ -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()],
},
],