Skip to content

Commit 63ffa13

Browse files
Fix tidy issues
1 parent 78d6cb0 commit 63ffa13

File tree

5 files changed

+30
-17
lines changed

5 files changed

+30
-17
lines changed

src/librustdoc/html/static/normalize.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustdoc/html/static/rustdoc.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
}
5050

5151
* {
52-
-webkit-box-sizing: border-box;
53-
-moz-box-sizing: border-box;
54-
box-sizing: border-box;
52+
-webkit-box-sizing: border-box;
53+
-moz-box-sizing: border-box;
54+
box-sizing: border-box;
5555
}
5656

5757
/* This part handles the "default" theme being used depending on the system one. */
@@ -91,7 +91,8 @@ h2 {
9191
h3 {
9292
font-size: 1.3em;
9393
}
94-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.important), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
94+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.important),
95+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
9596
font-weight: 500;
9697
margin: 20px 0 15px 0;
9798
padding-bottom: 6px;
@@ -103,7 +104,8 @@ h1.fqn {
103104
h1.fqn > .in-band > a:hover {
104105
text-decoration: underline;
105106
}
106-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
107+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
108+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
107109
border-bottom: 1px solid;
108110
}
109111
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {

src/librustdoc/html/static/themes/ayu.css

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ body {
1010
color: #c5c5c5;
1111
}
1212

13-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
13+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14+
h4:not(.method):not(.type):not(.tymethod) {
1415
color: white;
1516
}
1617
h1.fqn {
@@ -41,7 +42,7 @@ h3 > code, h4 > code, h5 > code {
4142
color: #e6e1cf;
4243
}
4344
pre > code {
44-
color: #e6e1cf;
45+
color: #e6e1cf;
4546
}
4647
span code {
4748
color: #e6e1cf;
@@ -192,7 +193,7 @@ pre {
192193
color: #a37acc;
193194
}
194195

195-
pre.rust .comment, pre.rust .doccomment {
196+
pre.rust .comment, pre.rust .doccomment {
196197
color: #788797;
197198
font-style: italic;
198199
}
@@ -416,12 +417,13 @@ pre.ignore:hover, .information:hover + pre.ignore {
416417
/* rules that this theme does not need to set, here to satisfy the rule checker */
417418
/* note that a lot of these are partially set in some way (meaning they are set
418419
individually rather than as a group) */
419-
/* TODO: these rules should be at the bottom of the file but currently must be
420+
/* FIXME: these rules should be at the bottom of the file but currently must be
420421
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
421422
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
422423
.content .highlighted.mod, .content .highlighted.externcrate {}
423424
.search-input:focus {}
424-
.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
425+
.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
426+
.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
425427
.content .highlighted.trait {}
426428
.content span.struct,.content a.struct,.block a.current.struct {}
427429
#titles>div:hover,#titles>div.selected {}
@@ -436,16 +438,20 @@ pre.rust .lifetime {}
436438
.content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod {}
437439
h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
438440
.content span.enum,.content a.enum,.block a.current.enum {}
439-
.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static {}
441+
.content span.constant,.content a.constant,.block a.current.constant,.content span.static,
442+
.content a.static,.block a.current.static {}
440443
.content span.keyword,.content a.keyword,.block a.current.keyword {}
441444
pre.rust .comment {}
442445
.content .highlighted.enum {}
443446
.content .highlighted.struct {}
444447
.content .highlighted.keyword {}
445448
.content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
446-
.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname {}
449+
.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
450+
.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
451+
.content .fnname {}
447452
pre.rust .kw {}
448-
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident {}
453+
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
454+
pre.rust .attribute .ident {}
449455
.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
450456
pre.rust .doccomment {}
451457
.stab.deprecated {}

src/librustdoc/html/static/themes/dark.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ body {
33
color: #ddd;
44
}
55

6-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
6+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
7+
h4:not(.method):not(.type):not(.tymethod) {
78
color: #ddd;
89
}
910
h1.fqn {
1011
border-bottom-color: #d2d2d2;
1112
}
12-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
13+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14+
h4:not(.method):not(.type):not(.tymethod) {
1315
border-bottom-color: #d2d2d2;
1416
}
1517

src/librustdoc/html/static/themes/light.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ body {
55
color: black;
66
}
77

8-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
8+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
9+
h4:not(.method):not(.type):not(.tymethod) {
910
color: black;
1011
}
1112
h1.fqn {
1213
border-bottom-color: #D5D5D5;
1314
}
14-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
15+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
16+
h4:not(.method):not(.type):not(.tymethod) {
1517
border-bottom-color: #DDDDDD;
1618
}
1719

0 commit comments

Comments
 (0)