diff --git a/config/src/lua.rs b/config/src/lua.rs index ea1e9378b..958811dcc 100644 --- a/config/src/lua.rs +++ b/config/src/lua.rs @@ -259,9 +259,7 @@ pub fn make_lua_context(config_file: &Path) -> anyhow::Result { "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)) -> mlua::Result<()> { +fn open_with<'lua>(_: &'lua Lua, (url, app): (String, Option)) -> mlua::Result<()> { if let Some(app) = app { open::with_in_background(url, app); } else {