Skip to content

Commit 4435c99

Browse files
committed
rustdoc js: satisfy eslint
1 parent ef1827b commit 4435c99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustdoc/html/static/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Local js definitions:
22
/* global addClass, getSettingValue, hasClass, updateLocalStorage */
3-
/* global onEachLazy, removeClass, getVar, nonnull */
3+
/* global onEachLazy, removeClass, getVar */
44

55
"use strict";
66

src/librustdoc/html/static/js/settings.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@
143143
if (settingValue !== null && settingValue !== "null") {
144144
elem.checked = settingValue === elem.value;
145145
}
146-
elem.addEventListener("change", ev => {
146+
elem.addEventListener("change", () => {
147147
changeSetting(elem.name, elem.value);
148148
});
149-
}
149+
},
150150
);
151151
}
152152

@@ -207,7 +207,7 @@
207207
* @return {HTMLElement}
208208
*/
209209
function buildSettingsPage() {
210-
const theme_list = getVar("themes")
210+
const theme_list = getVar("themes");
211211
const theme_names = (theme_list === null ? "" : theme_list)
212212
.split(",").filter(t => t);
213213
theme_names.push("light", "dark", "ayu");

0 commit comments

Comments
 (0)