File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,11 @@ pub struct RequestBodyParams {
192192}
193193
194194impl 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 ( )
Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments