fix: format code

This commit is contained in:
YuKun Liu 2022-07-06 22:45:08 +08:00
parent 3551d1b6a0
commit b642dcd739
2 changed files with 4 additions and 2 deletions

View file

@ -433,7 +433,9 @@ fn build_assets(config: &CrateConfig) -> Result<Vec<PathBuf>> {
let temp = entry.path();
if temp.is_file() {
let suffix = temp.extension();
if suffix.is_none() { continue; }
if suffix.is_none() {
continue;
}
let suffix = suffix.unwrap().to_str().unwrap();
if suffix == "scss" || suffix == "sass" {
// if file suffix is `scss` / `sass` we need transform it.

View file

@ -21,4 +21,4 @@ pub use error::*;
pub mod logging;
pub use logging::*;
pub mod hot_reload;
pub mod hot_reload;