diff options
| author | binarycat <binarycat@envs.net> | 2025-04-02 16:36:08 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-04-02 16:36:08 -0500 |
| commit | 4435c999db7a4affa81662d1d90a75595da94b78 (patch) | |
| tree | 2394ea9b90b8d282f6b778453f426a59536baa87 /src/librustdoc | |
| parent | ef1827b97452f697c28d028f94148463606b2fd8 (diff) | |
| download | rust-4435c999db7a4affa81662d1d90a75595da94b78.tar.gz rust-4435c999db7a4affa81662d1d90a75595da94b78.zip | |
rustdoc js: satisfy eslint
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/static/js/main.js | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/static/js/settings.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js index 9902918fe5e..a7ce2bf9048 100644 --- a/src/librustdoc/html/static/js/main.js +++ b/src/librustdoc/html/static/js/main.js @@ -1,6 +1,6 @@ // Local js definitions: /* global addClass, getSettingValue, hasClass, updateLocalStorage */ -/* global onEachLazy, removeClass, getVar, nonnull */ +/* global onEachLazy, removeClass, getVar */ "use strict"; diff --git a/src/librustdoc/html/static/js/settings.js b/src/librustdoc/html/static/js/settings.js index 2c051d0025c..2430b5829b2 100644 --- a/src/librustdoc/html/static/js/settings.js +++ b/src/librustdoc/html/static/js/settings.js @@ -143,10 +143,10 @@ if (settingValue !== null && settingValue !== "null") { elem.checked = settingValue === elem.value; } - elem.addEventListener("change", ev => { + elem.addEventListener("change", () => { changeSetting(elem.name, elem.value); }); - } + }, ); } @@ -207,7 +207,7 @@ * @return {HTMLElement} */ function buildSettingsPage() { - const theme_list = getVar("themes") + const theme_list = getVar("themes"); const theme_names = (theme_list === null ? "" : theme_list) .split(",").filter(t => t); theme_names.push("light", "dark", "ayu"); |
