|
8 | 8 | //! directly written to a `Write` handle.
|
9 | 9 |
|
10 | 10 | /// The file contents of the main `rustdoc.css` file, responsible for the core layout of the page.
|
11 |
| -pub static RUSTDOC_CSS: &'static str = include_str!("static/rustdoc.css"); |
| 11 | +pub static RUSTDOC_CSS: &str = include_str!("static/rustdoc.css"); |
12 | 12 |
|
13 | 13 | /// The file contents of `settings.css`, responsible for the items on the settings page.
|
14 |
| -pub static SETTINGS_CSS: &'static str = include_str!("static/settings.css"); |
| 14 | +pub static SETTINGS_CSS: &str = include_str!("static/settings.css"); |
15 | 15 |
|
16 | 16 | /// The file contents of the `noscript.css` file, used in case JS isn't supported or is disabled.
|
17 |
| -pub static NOSCRIPT_CSS: &'static str = include_str!("static/noscript.css"); |
| 17 | +pub static NOSCRIPT_CSS: &str = include_str!("static/noscript.css"); |
18 | 18 |
|
19 | 19 | /// The file contents of `normalize.css`, included to even out standard elements between browser
|
20 | 20 | /// implementations.
|
21 |
| -pub static NORMALIZE_CSS: &'static str = include_str!("static/normalize.css"); |
| 21 | +pub static NORMALIZE_CSS: &str = include_str!("static/normalize.css"); |
22 | 22 |
|
23 | 23 | /// The file contents of `main.js`, which contains the core JavaScript used on documentation pages,
|
24 | 24 | /// including search behavior and docblock folding, among others.
|
25 |
| -pub static MAIN_JS: &'static str = include_str!("static/main.js"); |
| 25 | +pub static MAIN_JS: &str = include_str!("static/main.js"); |
26 | 26 |
|
27 | 27 | /// The file contents of `settings.js`, which contains the JavaScript used to handle the settings
|
28 | 28 | /// page.
|
29 |
| -pub static SETTINGS_JS: &'static str = include_str!("static/settings.js"); |
| 29 | +pub static SETTINGS_JS: &str = include_str!("static/settings.js"); |
30 | 30 |
|
31 | 31 | /// The file contents of `storage.js`, which contains functionality related to browser Local
|
32 | 32 | /// Storage, used to store documentation settings.
|
33 |
| -pub static STORAGE_JS: &'static str = include_str!("static/storage.js"); |
| 33 | +pub static STORAGE_JS: &str = include_str!("static/storage.js"); |
34 | 34 |
|
35 | 35 | /// The file contents of `brush.svg`, the icon used for the theme-switch button.
|
36 |
| -pub static BRUSH_SVG: &'static [u8] = include_bytes!("static/brush.svg"); |
| 36 | +pub static BRUSH_SVG: &[u8] = include_bytes!("static/brush.svg"); |
37 | 37 |
|
38 | 38 | /// The file contents of `wheel.svg`, the icon used for the settings button.
|
39 |
| -pub static WHEEL_SVG: &'static [u8] = include_bytes!("static/wheel.svg"); |
| 39 | +pub static WHEEL_SVG: &[u8] = include_bytes!("static/wheel.svg"); |
40 | 40 |
|
41 | 41 | /// The file contents of `down-arrow.svg`, the icon used for the crate choice combobox.
|
42 |
| -pub static DOWN_ARROW_SVG: &'static [u8] = include_bytes!("static/down-arrow.svg"); |
| 42 | +pub static DOWN_ARROW_SVG: &[u8] = include_bytes!("static/down-arrow.svg"); |
43 | 43 |
|
44 | 44 | /// The contents of `COPYRIGHT.txt`, the license listing for files distributed with documentation
|
45 | 45 | /// output.
|
46 |
| -pub static COPYRIGHT: &'static [u8] = include_bytes!("static/COPYRIGHT.txt"); |
| 46 | +pub static COPYRIGHT: &[u8] = include_bytes!("static/COPYRIGHT.txt"); |
47 | 47 |
|
48 | 48 | /// The contents of `LICENSE-APACHE.txt`, the text of the Apache License, version 2.0.
|
49 |
| -pub static LICENSE_APACHE: &'static [u8] = include_bytes!("static/LICENSE-APACHE.txt"); |
| 49 | +pub static LICENSE_APACHE: &[u8] = include_bytes!("static/LICENSE-APACHE.txt"); |
50 | 50 |
|
51 | 51 | /// The contents of `LICENSE-MIT.txt`, the text of the MIT License.
|
52 |
| -pub static LICENSE_MIT: &'static [u8] = include_bytes!("static/LICENSE-MIT.txt"); |
| 52 | +pub static LICENSE_MIT: &[u8] = include_bytes!("static/LICENSE-MIT.txt"); |
53 | 53 |
|
54 | 54 | /// The contents of `rust-logo.png`, the default icon of the documentation.
|
55 |
| -pub static RUST_LOGO: &'static [u8] = include_bytes!("static/rust-logo.png"); |
| 55 | +pub static RUST_LOGO: &[u8] = include_bytes!("static/rust-logo.png"); |
56 | 56 | /// The contents of `favicon.ico`, the default favicon of the documentation.
|
57 |
| -pub static RUST_FAVICON: &'static [u8] = include_bytes!("static/favicon.ico"); |
| 57 | +pub static RUST_FAVICON: &[u8] = include_bytes!("static/favicon.ico"); |
58 | 58 |
|
59 | 59 | /// The built-in themes given to every documentation site.
|
60 | 60 | pub mod themes {
|
61 | 61 | /// The "light" theme, selected by default when no setting is available. Used as the basis for
|
62 | 62 | /// the `--check-theme` functionality.
|
63 |
| - pub static LIGHT: &'static str = include_str!("static/themes/light.css"); |
| 63 | + pub static LIGHT: &str = include_str!("static/themes/light.css"); |
64 | 64 |
|
65 | 65 | /// The "dark" theme.
|
66 |
| - pub static DARK: &'static str = include_str!("static/themes/dark.css"); |
| 66 | + pub static DARK: &str = include_str!("static/themes/dark.css"); |
67 | 67 | }
|
68 | 68 |
|
69 | 69 | /// Files related to the Fira Sans font.
|
70 | 70 | pub mod fira_sans {
|
71 | 71 | /// The file `FiraSans-Regular.woff`, the Regular variant of the Fira Sans font.
|
72 |
| - pub static REGULAR: &'static [u8] = include_bytes!("static/FiraSans-Regular.woff"); |
| 72 | + pub static REGULAR: &[u8] = include_bytes!("static/FiraSans-Regular.woff"); |
73 | 73 |
|
74 | 74 | /// The file `FiraSans-Medium.woff`, the Medium variant of the Fira Sans font.
|
75 |
| - pub static MEDIUM: &'static [u8] = include_bytes!("static/FiraSans-Medium.woff"); |
| 75 | + pub static MEDIUM: &[u8] = include_bytes!("static/FiraSans-Medium.woff"); |
76 | 76 |
|
77 | 77 | /// The file `FiraSans-LICENSE.txt`, the license text for the Fira Sans font.
|
78 |
| - pub static LICENSE: &'static [u8] = include_bytes!("static/FiraSans-LICENSE.txt"); |
| 78 | + pub static LICENSE: &[u8] = include_bytes!("static/FiraSans-LICENSE.txt"); |
79 | 79 | }
|
80 | 80 |
|
81 | 81 | /// Files related to the Source Serif Pro font.
|
82 | 82 | pub mod source_serif_pro {
|
83 | 83 | /// The file `SourceSerifPro-Regular.ttf.woff`, the Regular variant of the Source Serif Pro
|
84 | 84 | /// font.
|
85 |
| - pub static REGULAR: &'static [u8] = include_bytes!("static/SourceSerifPro-Regular.ttf.woff"); |
| 85 | + pub static REGULAR: &[u8] = include_bytes!("static/SourceSerifPro-Regular.ttf.woff"); |
86 | 86 |
|
87 | 87 | /// The file `SourceSerifPro-Bold.ttf.woff`, the Bold variant of the Source Serif Pro font.
|
88 |
| - pub static BOLD: &'static [u8] = include_bytes!("static/SourceSerifPro-Bold.ttf.woff"); |
| 88 | + pub static BOLD: &[u8] = include_bytes!("static/SourceSerifPro-Bold.ttf.woff"); |
89 | 89 |
|
90 | 90 | /// The file `SourceSerifPro-It.ttf.woff`, the Italic variant of the Source Serif Pro font.
|
91 |
| - pub static ITALIC: &'static [u8] = include_bytes!("static/SourceSerifPro-It.ttf.woff"); |
| 91 | + pub static ITALIC: &[u8] = include_bytes!("static/SourceSerifPro-It.ttf.woff"); |
92 | 92 |
|
93 | 93 | /// The file `SourceSerifPro-LICENSE.txt`, the license text for the Source Serif Pro font.
|
94 |
| - pub static LICENSE: &'static [u8] = include_bytes!("static/SourceSerifPro-LICENSE.md"); |
| 94 | + pub static LICENSE: &[u8] = include_bytes!("static/SourceSerifPro-LICENSE.md"); |
95 | 95 | }
|
96 | 96 |
|
97 | 97 | /// Files related to the Source Code Pro font.
|
98 | 98 | pub mod source_code_pro {
|
99 | 99 | /// The file `SourceCodePro-Regular.woff`, the Regular variant of the Source Code Pro font.
|
100 |
| - pub static REGULAR: &'static [u8] = include_bytes!("static/SourceCodePro-Regular.woff"); |
| 100 | + pub static REGULAR: &[u8] = include_bytes!("static/SourceCodePro-Regular.woff"); |
101 | 101 |
|
102 | 102 | /// The file `SourceCodePro-Semibold.woff`, the Semibold variant of the Source Code Pro font.
|
103 |
| - pub static SEMIBOLD: &'static [u8] = include_bytes!("static/SourceCodePro-Semibold.woff"); |
| 103 | + pub static SEMIBOLD: &[u8] = include_bytes!("static/SourceCodePro-Semibold.woff"); |
104 | 104 |
|
105 | 105 | /// The file `SourceCodePro-LICENSE.txt`, the license text of the Source Code Pro font.
|
106 |
| - pub static LICENSE: &'static [u8] = include_bytes!("static/SourceCodePro-LICENSE.txt"); |
| 106 | + pub static LICENSE: &[u8] = include_bytes!("static/SourceCodePro-LICENSE.txt"); |
107 | 107 | }
|
108 | 108 |
|
109 | 109 | /// Files related to the sidebar in rustdoc sources.
|
110 | 110 | pub mod sidebar {
|
111 | 111 | /// File script to handle sidebar.
|
112 |
| - pub static SOURCE_SCRIPT: &'static str = include_str!("static/source-script.js"); |
| 112 | + pub static SOURCE_SCRIPT: &str = include_str!("static/source-script.js"); |
113 | 113 | }
|
0 commit comments