From fc4cebc86290e964133dd8a417d3d1d3981f3cf8 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 24 Jan 2024 18:37:22 -0800 Subject: [PATCH] -1 loc --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4f11e93..2a228e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1501,10 +1501,9 @@ async fn compile(config:CompileConfig)->AResult<()>{ let style=config.style; join_set.spawn(async move{ let met=entry.metadata().await?; - let compile_class=if met.is_dir(){ - locate_override_file(&entry,style).await? - }else{ - discern_file(&entry,style).await? + let compile_class=match met.is_dir(){ + true=>locate_override_file(&entry,style).await?, + false=>discern_file(&entry,style).await?, }; //discern that bad boy Ok::<_,anyhow::Error>(