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