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 {
1033
1033
) -> Attributes {
1034
1034
let mut doc_strings: Vec < DocFragment > = vec ! [ ] ;
1035
1035
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
-
1042
1036
let clean_attr = |( attr, parent_module) : ( & ast:: Attribute , Option < DefId > ) | {
1043
1037
if let Some ( value) = attr. doc_str ( ) {
1044
1038
trace ! ( "got doc_str={:?}" , value) ;
@@ -1058,7 +1052,9 @@ impl Attributes {
1058
1052
indent : 0 ,
1059
1053
} ;
1060
1054
1061
- update_need_backline ( & mut doc_strings) ;
1055
+ if let Some ( prev) = doc_strings. last_mut ( ) {
1056
+ prev. need_backline = true ;
1057
+ }
1062
1058
1063
1059
doc_strings. push ( frag) ;
1064
1060
You can’t perform that action at this time.
0 commit comments