diff options
Diffstat (limited to 'server/src/frontend/style/mod.rs')
-rw-r--r-- | server/src/frontend/style/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/src/frontend/style/mod.rs b/server/src/frontend/style/mod.rs index 1e51d10..ca54aa7 100644 --- a/server/src/frontend/style/mod.rs +++ b/server/src/frontend/style/mod.rs @@ -1,6 +1,7 @@ -use std::{fs::{File, read_to_string}, io::Read}; - - +use std::{ + fs::{read_to_string, File}, + io::Read, +}; pub fn css_bundle() -> String { if cfg!(debug_assertions) { @@ -13,7 +14,10 @@ pub fn css_bundle() -> String { pub fn font_bundle() -> Vec<u8> { if cfg!(debug_assertions) { let mut woff = Vec::new(); - File::open("server/src/frontend/style/cantarell.woff2").unwrap().read_to_end(&mut woff).unwrap(); + File::open("server/src/frontend/style/cantarell.woff2") + .unwrap() + .read_to_end(&mut woff) + .unwrap(); woff } else { include_bytes!("cantarell.woff2").to_vec() |