Skip to content

Commit cb873c5

Browse files
code formatting
1 parent 02785da commit cb873c5

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/librustdoc/html/render.rs

+10-8
Original file line numberDiff line numberDiff line change
@@ -2575,13 +2575,14 @@ fn document(w: &mut fmt::Formatter<'_>, cx: &Context, item: &clean::Item) -> fmt
25752575
}
25762576

25772577
/// Render md_text as markdown.
2578-
fn render_markdown(w: &mut fmt::Formatter<'_>,
2579-
cx: &Context,
2580-
md_text: &str,
2581-
links: Vec<(String, String)>,
2582-
prefix: &str,
2583-
is_hidden: bool)
2584-
-> fmt::Result {
2578+
fn render_markdown(
2579+
w: &mut fmt::Formatter<'_>,
2580+
cx: &Context,
2581+
md_text: &str,
2582+
links: Vec<(String, String)>,
2583+
prefix: &str,
2584+
is_hidden: bool,
2585+
) -> fmt::Result {
25852586
let mut ids = cx.id_map.borrow_mut();
25862587
write!(w, "<div class='docblock{}'>{}{}</div>",
25872588
if is_hidden { " hidden" } else { "" },
@@ -2595,7 +2596,8 @@ fn document_short(
25952596
cx: &Context,
25962597
item: &clean::Item,
25972598
link: AssocItemLink<'_>,
2598-
prefix: &str, is_hidden: bool
2599+
prefix: &str,
2600+
is_hidden: bool,
25992601
) -> fmt::Result {
26002602
if let Some(s) = item.doc_value() {
26012603
let markdown = if s.contains('\n') {

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Local js definitions:
55
/* global addClass, getCurrentValue, hasClass */
6-
/* global isHidden onEach, removeClass, updateLocalStorage */
6+
/* global isHidden, onEach, removeClass, updateLocalStorage */
77

88
if (!String.prototype.startsWith) {
99
String.prototype.startsWith = function(searchString, position) {

0 commit comments

Comments
 (0)