We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f080f6 + 1f1f721 commit 3340666Copy full SHA for 3340666
src/librustdoc/clean/types.rs
@@ -1029,12 +1029,6 @@ impl Attributes {
1029
) -> Attributes {
1030
let mut doc_strings: Vec<DocFragment> = vec![];
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
let clean_attr = |(attr, parent_module): (&ast::Attribute, Option<DefId>)| {
1039
if let Some(value) = attr.doc_str() {
1040
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
1059
doc_strings.push(frag);
1060
0 commit comments