Skip to content

Commit 1f1f721

Browse files
committed
Remove unnecessary need_backline function
1 parent d3f3004 commit 1f1f721

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: src/librustdoc/clean/types.rs

+3-7
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)