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::, _>>()?, ); }