You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.map_err(|err| format!("Unable to open x11 connection, maybe you are not running under X11? Other window systems on Linux are not supported by `global-hotkey` crate: {}", err))?;
231
+
.map_err(|err| format!("Unable to open x11 connection, maybe you are not running under X11? Other window systems on Linux are not supported by `global-hotkey` crate: {err}"))?;
232
232
233
233
xkb::ConnectionExt::xkb_use_extension(&conn,1,0)
234
-
.map_err(|err| {
235
-
format!(
236
-
"Unable to send xkb_use_extension request to x11 server: {}",
237
-
err
238
-
)
239
-
})?
234
+
.map_err(|err| format!("Unable to send xkb_use_extension request to x11 server: {err}"))?
240
235
.reply()
241
-
.map_err(|err| {
242
-
format!(
243
-
"xkb_use_extension request to x11 server has failed: {}",
244
-
err
245
-
)
246
-
})?;
236
+
.map_err(|err| format!("xkb_use_extension request to x11 server has failed: {err}"))?;
0 commit comments