File tree 4 files changed +21
-1
lines changed
4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,13 @@ rules.
23
23
# main .impl-items .hidden {
24
24
display : block !important ;
25
25
}
26
+
27
+ # main .impl-items h4 .hidden {
28
+ /* Without this rule, the version and the "[src]" span aren't on the same line as the header. */
29
+ display : flex !important ;
30
+ }
31
+
32
+ # main .attributes {
33
+ /* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */
34
+ margin-left : 0 !important ;
35
+ }
Original file line number Diff line number Diff line change @@ -1343,7 +1343,7 @@ h4 > .notable-traits {
1343
1343
@media (min-width : 701px ) {
1344
1344
/* In case there is no documentation before a code block, we need to add some margin at the top
1345
1345
to prevent an overlay between the "collapse toggle" and the information tooltip.
1346
- However, it's needed needed with smaller screen width because the doc/code block is always put
1346
+ However, it's not needed with smaller screen width because the doc/code block is always put
1347
1347
"one line" below. */
1348
1348
.information : first-child > .tooltip {
1349
1349
margin-top : 16px ;
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ pub fn foo() {}
27
27
/// Just a normal struct.
28
28
pub struct Foo ;
29
29
30
+ impl Foo {
31
+ #[ must_use]
32
+ pub fn must_use ( & self ) -> bool { true }
33
+ }
34
+
30
35
/// Just a normal enum.
31
36
pub enum WhoLetTheDogOut {
32
37
/// Woof!
Original file line number Diff line number Diff line change
1
+ // Check that the attributes are well positioned when javascript is disabled (since
2
+ // there is no toggle to display)
3
+ javascript: false
4
+ goto: file://|DOC_PATH|/struct.Foo.html
5
+ assert: (".attributes", {"margin-left": "0px"})
You can’t perform that action at this time.
0 commit comments