From 0f9daa74031e5ea79630ef1df76b27d7d85b035b Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 28 Jul 2025 18:26:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20[build]=20Aplica=20mejora=20prop?= =?UTF-8?q?uesta=20por=20clippy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/pagetop-build/src/lib.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/helpers/pagetop-build/src/lib.rs b/helpers/pagetop-build/src/lib.rs index e125c59..b0a13f3 100644 --- a/helpers/pagetop-build/src/lib.rs +++ b/helpers/pagetop-build/src/lib.rs @@ -230,15 +230,9 @@ impl StaticFilesBundle { // Guarda el archivo CSS compilado en el directorio temporal. let css_path = temp_dir.join(target_name); File::create(&css_path) - .expect(&format!( - "Failed to create CSS file `{}`", - css_path.display() - )) + .unwrap_or_else(|_| panic!("Failed to create CSS file `{}`", css_path.display())) .write_all(css_content.as_bytes()) - .expect(&format!( - "Failed to write CSS content to `{}`", - css_path.display() - )); + .unwrap_or_else(|_| panic!("Failed to write CSS content to `{}`", css_path.display())); // Identifica el directorio temporal de recursos. StaticFilesBundle {