From 2283937feb79ca5f32c814afa956df6c9459d58d Mon Sep 17 00:00:00 2001 From: Andy Wang <128531452+Andy-W-Developer@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:47:20 +1300 Subject: [PATCH] fix: multiline formatting meant to be single line --- yazi-fm/src/lives/file.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/yazi-fm/src/lives/file.rs b/yazi-fm/src/lives/file.rs index 128f944c..e8c46cc4 100644 --- a/yazi-fm/src/lives/file.rs +++ b/yazi-fm/src/lives/file.rs @@ -58,12 +58,7 @@ impl File { Some(lua.create_string(p.as_path().as_os_str().as_encoded_bytes())).transpose() }); reg.add_method("icon", |lua, me, ()| { - THEME - .icons - .iter() - .find(|&x| x.matches(me)) - .map(|x| Icon::cast(lua, x)) - .transpose() + THEME.icons.iter().find(|&x| x.matches(me)).map(|x| Icon::cast(lua, x)).transpose() }); reg.add_method("style", |lua, me, ()| { let cx = lua.named_registry_value::("cx")?;