🚨 [build] Aplica mejora propuesta por clippy

This commit is contained in:
Manuel Cillero 2025-07-28 18:26:30 +02:00
parent 66289e131e
commit 0f9daa7403

View file

@ -230,15 +230,9 @@ impl StaticFilesBundle {
// Guarda el archivo CSS compilado en el directorio temporal. // Guarda el archivo CSS compilado en el directorio temporal.
let css_path = temp_dir.join(target_name); let css_path = temp_dir.join(target_name);
File::create(&css_path) File::create(&css_path)
.expect(&format!( .unwrap_or_else(|_| panic!("Failed to create CSS file `{}`", css_path.display()))
"Failed to create CSS file `{}`",
css_path.display()
))
.write_all(css_content.as_bytes()) .write_all(css_content.as_bytes())
.expect(&format!( .unwrap_or_else(|_| panic!("Failed to write CSS content to `{}`", css_path.display()));
"Failed to write CSS content to `{}`",
css_path.display()
));
// Identifica el directorio temporal de recursos. // Identifica el directorio temporal de recursos.
StaticFilesBundle { StaticFilesBundle {