File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1033,12 +1033,6 @@ impl Attributes {
10331033 ) -> Attributes {
10341034 let mut doc_strings: Vec < DocFragment > = vec ! [ ] ;
10351035
1036- fn update_need_backline ( doc_strings : & mut Vec < DocFragment > ) {
1037- if let Some ( prev) = doc_strings. last_mut ( ) {
1038- prev. need_backline = true ;
1039- }
1040- }
1041-
10421036 let clean_attr = |( attr, parent_module) : ( & ast:: Attribute , Option < DefId > ) | {
10431037 if let Some ( value) = attr. doc_str ( ) {
10441038 trace ! ( "got doc_str={:?}" , value) ;
@@ -1058,7 +1052,9 @@ impl Attributes {
10581052 indent : 0 ,
10591053 } ;
10601054
1061- update_need_backline ( & mut doc_strings) ;
1055+ if let Some ( prev) = doc_strings. last_mut ( ) {
1056+ prev. need_backline = true ;
1057+ }
10621058
10631059 doc_strings. push ( frag) ;
10641060
You can’t perform that action at this time.
0 commit comments