From 1ed41958be39fc3671cfeed6252df1b010c744f3 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Thu, 6 Feb 2025 18:44:42 -0500 Subject: [PATCH] style: bubble up error --- src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.rs b/src/settings.rs index b577666..6649f69 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -281,7 +281,7 @@ pub async fn encoded_restore(req: Request) -> Result, Strin let mut prefs: Preferences = bincode::deserialize(&out).map_err(|e| format!("Failed to deserialize bytes into Preferences struct: {}", e))?; prefs.available_themes = vec![]; - let url = format!("/settings/restore/?{}", prefs.to_urlencoded().unwrap()); + let url = format!("/settings/restore/?{}", prefs.to_urlencoded()?); Ok(redirect(&url)) }