aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Stabe <lukas@stabe.de>2020-09-26 21:16:20 +0000
committerLukas Stabe <lukas@stabe.de>2020-09-26 21:16:20 +0000
commitff858847ab75fd2416124047a8ef0a12138468aa (patch)
tree9350c5ea950384b6e8dfd6c8bc1a85ca6f10b2c8
parentcompile scss at build time (diff)
downloadminiserve-ff858847ab75fd2416124047a8ef0a12138468aa.tar.gz
miniserve-ff858847ab75fd2416124047a8ef0a12138468aa.zip
cargo fmt
Diffstat (limited to '')
-rw-r--r--build.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index c759316..78b4975 100644
--- a/build.rs
+++ b/build.rs
@@ -7,7 +7,12 @@ fn main() {
let dest_path = Path::new(&out_dir).join("style.css");
fs::write(
&dest_path,
- grass::from_string(include_str!("data/style.scss").to_string(), &grass::Options::default()).unwrap()
- ).unwrap();
+ grass::from_string(
+ include_str!("data/style.scss").to_string(),
+ &grass::Options::default(),
+ )
+ .unwrap(),
+ )
+ .unwrap();
println!("cargo:rerun-if-changed=data/style.css");
}