cargo fmt

This commit is contained in:
Wez Furlong committed 2021-12-23 12:35:20 -07:00
1 parent 0e6c75c026
commit d25580d10f
1 file changed
+2 -4
+2 -4
View File
@@ -259,9 +259,7 @@ pub fn make_lua_context(config_file: &Path) -> anyhow::Result<Lua> {
"background_child_process",
lua.create_async_function(background_child_process)?,
)?;
wezterm_mod.set(
"open_with",
lua.create_function(open_with)?)?;
wezterm_mod.set("open_with", lua.create_function(open_with)?)?;
wezterm_mod.set("on", lua.create_function(register_event)?)?;
wezterm_mod.set("emit", lua.create_async_function(emit_event)?)?;
wezterm_mod.set("sleep_ms", lua.create_async_function(sleep_ms)?)?;
@@ -448,7 +446,7 @@ async fn sleep_ms<'lua>(_: &'lua Lua, milliseconds: u64) -> mlua::Result<()> {
Ok(())
}
fn open_with<'lua>(_:&'lua Lua, (url, app): (String, Option<String>)) -> mlua::Result<()> {
fn open_with<'lua>(_: &'lua Lua, (url, app): (String, Option<String>)) -> mlua::Result<()> {
if let Some(app) = app {
open::with_in_background(url, app);
} else {