From fc3ebf0fd4ffe29b6fa22f2cfb9dfed9b202a577 Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Tue, 31 Dec 2024 14:47:48 -0500 Subject: [PATCH] Fix misspellings on variable name --- src/settings.rs | 4 ++-- src/subreddit.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 147be2a..34718c2 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -157,14 +157,14 @@ fn set_cookies_method(req: Request, remove_cookies: bool) -> Response) -> Result, // Starting at 0 so we handle the subscription cookie without a number first for (subscriptions_number, list) in join_until_size_limit(&sub_list).into_iter().enumerate() { - let subcriptions_cookie = if subscriptions_number == 0 { + let subscriptions_cookie = if subscriptions_number == 0 { "subscriptions".to_string() } else { format!("subscriptions{}", subscriptions_number) }; response.insert_cookie( - Cookie::build((subcriptions_cookie, list)) + Cookie::build((subscriptions_cookie, list)) .path("/") .http_only(true) .expires(OffsetDateTime::now_utc() + Duration::weeks(52))