about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory O’Kane <rory@roryokane.com>2015-04-30 00:25:37 -0400
committerRory O’Kane <rory@roryokane.com>2015-04-30 00:25:37 -0400
commit6ce05ae6bb0e5762dee940d043feb728e5583564 (patch)
treeaf55eb6feffc6988ebe309c2d5331abe3f0e64f3
parentfc9bddd1052f3f4002438d70c109dd6d69eeeba0 (diff)
downloadrust-6ce05ae6bb0e5762dee940d043feb728e5583564.tar.gz
rust-6ce05ae6bb0e5762dee940d043feb728e5583564.zip
Fix style warning, “line longer than 100 chars”
Error was noted at https://travis-ci.org/rust-lang/rust/builds/60643081#L371

I didn’t just put the content of the node on another line, because that would add spaces around the element content, messing up the JavaScript that checks what the content is.
-rw-r--r--src/librustdoc/html/render.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 55935a90630..ad26d25c81a 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -1460,7 +1460,8 @@ impl<'a> fmt::Display for Item<'a> {
         try!(write!(fmt, "<span class='out-of-band'>"));
         try!(write!(fmt,
         r##"<span id='render-detail'>
-            <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[&#x2212;]</a>
+            <a id="toggle-all-docs" href="javascript:void(0)"
+               title="collapse all docs">[&#x2212;]</a>
         </span>"##));
 
         // Write `src` tag