From 669b348160051d453a92f8643ea8cdfa1486f029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 30 Mar 2024 16:45:04 +0100 Subject: [PATCH] refactor: fix lint --- cli/src/main.rs | 2 +- db/src/engine.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 92bb1a0..5fe979a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -349,7 +349,7 @@ async fn main() -> Result<()> { if !exists { warn!( "Couldn't locate Web UI directory ({:?}), disabling...", - WEBUI_PATH.to_owned() + *WEBUI_PATH ); } exists diff --git a/db/src/engine.rs b/db/src/engine.rs index b516f46..a8867eb 100644 --- a/db/src/engine.rs +++ b/db/src/engine.rs @@ -178,9 +178,7 @@ pub fn execute( var_name.clone(), subquery_results .iter() - .map(|e| { - e.attribute.parse().map(|a| EntryPart::Attribute(a)) - }) + .map(|e| e.attribute.parse().map(EntryPart::Attribute)) .collect::, _>>()?, ); }