Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0d7faaf

Browse files
committed
rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes)
1 parent 254ceae commit 0d7faaf

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/librustdoc/html/static_files.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,106 +8,106 @@
88
//! directly written to a `Write` handle.
99
1010
/// 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");
1212

1313
/// 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");
1515

1616
/// 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");
1818

1919
/// The file contents of `normalize.css`, included to even out standard elements between browser
2020
/// implementations.
21-
pub static NORMALIZE_CSS: &'static str = include_str!("static/normalize.css");
21+
pub static NORMALIZE_CSS: &str = include_str!("static/normalize.css");
2222

2323
/// The file contents of `main.js`, which contains the core JavaScript used on documentation pages,
2424
/// 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");
2626

2727
/// The file contents of `settings.js`, which contains the JavaScript used to handle the settings
2828
/// page.
29-
pub static SETTINGS_JS: &'static str = include_str!("static/settings.js");
29+
pub static SETTINGS_JS: &str = include_str!("static/settings.js");
3030

3131
/// The file contents of `storage.js`, which contains functionality related to browser Local
3232
/// 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");
3434

3535
/// 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");
3737

3838
/// 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");
4040

4141
/// 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");
4343

4444
/// The contents of `COPYRIGHT.txt`, the license listing for files distributed with documentation
4545
/// output.
46-
pub static COPYRIGHT: &'static [u8] = include_bytes!("static/COPYRIGHT.txt");
46+
pub static COPYRIGHT: &[u8] = include_bytes!("static/COPYRIGHT.txt");
4747

4848
/// 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");
5050

5151
/// 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");
5353

5454
/// 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");
5656
/// 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");
5858

5959
/// The built-in themes given to every documentation site.
6060
pub mod themes {
6161
/// The "light" theme, selected by default when no setting is available. Used as the basis for
6262
/// 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");
6464

6565
/// 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");
6767
}
6868

6969
/// Files related to the Fira Sans font.
7070
pub mod fira_sans {
7171
/// 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");
7373

7474
/// 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");
7676

7777
/// 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");
7979
}
8080

8181
/// Files related to the Source Serif Pro font.
8282
pub mod source_serif_pro {
8383
/// The file `SourceSerifPro-Regular.ttf.woff`, the Regular variant of the Source Serif Pro
8484
/// 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");
8686

8787
/// 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");
8989

9090
/// 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");
9292

9393
/// 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");
9595
}
9696

9797
/// Files related to the Source Code Pro font.
9898
pub mod source_code_pro {
9999
/// 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");
101101

102102
/// 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");
104104

105105
/// 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");
107107
}
108108

109109
/// Files related to the sidebar in rustdoc sources.
110110
pub mod sidebar {
111111
/// 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");
113113
}

0 commit comments

Comments
 (0)