From f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 Mon Sep 17 00:00:00 2001 From: delta Date: Fri, 12 May 2023 16:18:24 +0200 Subject: restructure services, add get_essid to quarrel.native and other wip work --- .config/awesome/quarrel/native/src/lenses/calculator.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to '.config/awesome/quarrel/native/src/lenses') diff --git a/.config/awesome/quarrel/native/src/lenses/calculator.rs b/.config/awesome/quarrel/native/src/lenses/calculator.rs index 89b738e..c79dd42 100644 --- a/.config/awesome/quarrel/native/src/lenses/calculator.rs +++ b/.config/awesome/quarrel/native/src/lenses/calculator.rs @@ -13,14 +13,7 @@ use crate::lenses::entry::{ pub fn query<'a>(lua: &Lua, input: String) -> LuaResult { let result = match eval(input.trim(), true, Unit::Celsius, false) { Ok(result) => { - format!( - "{}{}", - result.value, - match result.unit { - Unit::NoUnit => "".to_owned(), - _ => format!(" {:?}", result.unit), - } - ) + format!("{result}") } Err(_) => return lua.create_table(), }; -- cgit v1.2.3