File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1077,18 +1077,7 @@ impl Attributes {
10771077 /// Finds the `doc` attribute as a NameValue and returns the corresponding
10781078 /// value found.
10791079 crate fn doc_value ( & self ) -> Option < String > {
1080- let mut iter = self . doc_strings . iter ( ) ;
1081-
1082- let ori = iter. next ( ) ?;
1083- let mut out = String :: new ( ) ;
1084- add_doc_fragment ( & mut out, ori) ;
1085- for new_frag in iter {
1086- if new_frag. kind != ori. kind || new_frag. parent_module != ori. parent_module {
1087- break ;
1088- }
1089- add_doc_fragment ( & mut out, new_frag) ;
1090- }
1091- if out. is_empty ( ) { None } else { Some ( out) }
1080+ self . collapsed_doc_value ( )
10921081 }
10931082
10941083 /// Return the doc-comments on this item, grouped by the module they came from.
You can’t perform that action at this time.
0 commit comments