We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
need_backline
1 parent d3f3004 commit 1f1f721Copy full SHA for 1f1f721
src/librustdoc/clean/types.rs
@@ -1033,12 +1033,6 @@ impl Attributes {
1033
) -> Attributes {
1034
let mut doc_strings: Vec<DocFragment> = vec![];
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
let clean_attr = |(attr, parent_module): (&ast::Attribute, Option<DefId>)| {
1043
if let Some(value) = attr.doc_str() {
1044
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
1063
doc_strings.push(frag);
1064
0 commit comments