aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2024-04-05 17:27:46 -0400
committeralyx <alyx@aleteoryx.me>2024-04-05 17:27:46 -0400
commit79999cecedd84e99655fbcdba0bd4e715a22173f (patch)
tree0a14c94c92d196c1bf73f2648c2ebacfe6a03500 /src/main.rs
parentca7c46e535ac60a976a8c60477fa9424c46b6e3f (diff)
downloadlfm_embed-79999cecedd84e99655fbcdba0bd4e715a22173f.tar.gz
lfm_embed-79999cecedd84e99655fbcdba0bd4e715a22173f.tar.bz2
lfm_embed-79999cecedd84e99655fbcdba0bd4e715a22173f.zip
Lua support feature-complete
Full implementation of debug mode still pending
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index afd1347..57975db 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,7 +52,7 @@ async fn main() {
let (userinfo, refresh) = get_userinfo(&s).await;
let (ctx, status) = get_ctx(userinfo, q.font, q.rest).await;
- let (theme, res) = render_theme(q.theme.as_deref(), &ctx);
+ let (theme, res) = tokio::task::spawn_blocking(move || render_theme(q.theme.as_deref(), &ctx)).await.expect("fatal error in theme rendering");
log::debug!(target: "lfm_embed::main::user", "Using theme {theme}");
match res {