@@ -98,7 +98,7 @@ pub struct DebugStruct<'a, 'b: 'a> {
98
98
has_fields : bool ,
99
99
}
100
100
101
- pub fn debug_struct_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ,
101
+ pub ( super ) fn debug_struct_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ,
102
102
name : & str )
103
103
-> DebugStruct < ' a , ' b > {
104
104
let result = fmt. write_str ( name) ;
@@ -251,7 +251,10 @@ pub struct DebugTuple<'a, 'b: 'a> {
251
251
empty_name : bool ,
252
252
}
253
253
254
- pub fn debug_tuple_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > , name : & str ) -> DebugTuple < ' a , ' b > {
254
+ pub ( super ) fn debug_tuple_new < ' a , ' b > (
255
+ fmt : & ' a mut fmt:: Formatter < ' b > ,
256
+ name : & str ,
257
+ ) -> DebugTuple < ' a , ' b > {
255
258
let result = fmt. write_str ( name) ;
256
259
DebugTuple {
257
260
fmt,
@@ -418,7 +421,7 @@ pub struct DebugSet<'a, 'b: 'a> {
418
421
inner : DebugInner < ' a , ' b > ,
419
422
}
420
423
421
- pub fn debug_set_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugSet < ' a , ' b > {
424
+ pub ( super ) fn debug_set_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugSet < ' a , ' b > {
422
425
let result = fmt. write_str ( "{" ) ;
423
426
DebugSet {
424
427
inner : DebugInner {
@@ -555,7 +558,7 @@ pub struct DebugList<'a, 'b: 'a> {
555
558
inner : DebugInner < ' a , ' b > ,
556
559
}
557
560
558
- pub fn debug_list_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugList < ' a , ' b > {
561
+ pub ( super ) fn debug_list_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugList < ' a , ' b > {
559
562
let result = fmt. write_str ( "[" ) ;
560
563
DebugList {
561
564
inner : DebugInner {
@@ -697,7 +700,7 @@ pub struct DebugMap<'a, 'b: 'a> {
697
700
state : PadAdapterState ,
698
701
}
699
702
700
- pub fn debug_map_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugMap < ' a , ' b > {
703
+ pub ( super ) fn debug_map_new < ' a , ' b > ( fmt : & ' a mut fmt:: Formatter < ' b > ) -> DebugMap < ' a , ' b > {
701
704
let result = fmt. write_str ( "{" ) ;
702
705
DebugMap {
703
706
fmt,
0 commit comments