aboutsummaryrefslogtreecommitdiff
path: root/server/src/frontend/style
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-16 21:54:28 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-16 21:54:28 +0100
commite65619de86080d72bf81ba72311dce5325976478 (patch)
tree0296089fb71550169a896dfbc7de88e33e655f86 /server/src/frontend/style
parent56cf07697695dea747b1c62768999e6237c55448 (diff)
downloadjellything-e65619de86080d72bf81ba72311dce5325976478.tar
jellything-e65619de86080d72bf81ba72311dce5325976478.tar.bz2
jellything-e65619de86080d72bf81ba72311dce5325976478.tar.zst
stuff
Diffstat (limited to 'server/src/frontend/style')
-rw-r--r--server/src/frontend/style/mod.rs12
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()