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 {